



<!DOCTYPE html>
<html>
<head>
 <link rel="icon" type="image/vnd.microsoft.icon" href="http://www.gstatic.com/codesite/ph/images/phosting.ico">
 
 
 <script type="text/javascript">
 
 (function(){function a(b){this.t={};this.tick=function(b,d,e){d=e!=void 0?e:(new Date).getTime();this.t[b]=d};this.tick("start",null,b)}var c=new a;window.jstiming={Timer:a,load:c};try{var f=null;window.chrome&&window.chrome.csi&&(f=Math.floor(window.chrome.csi().pageT));f==null&&window.gtbExternal&&(f=window.gtbExternal.pageT());f==null&&window.external&&(f=window.external.pageT);f&&(window.jstiming.pt=f)}catch(g){};})();

 
 
 
 
 var codesite_token = null;
 
 
 var CS_env = {"assetHostPath":"http://www.gstatic.com/codesite/ph","projectName":"controljs","projectHomeUrl":"/p/controljs","urlPrefix":"p","domainName":null,"relativeBaseUrl":"","profileUrl":null,"token":null,"assetVersionPath":"http://www.gstatic.com/codesite/ph/3282150342600863652","absoluteBaseUrl":"http://code.google.com","loggedInUserEmail":null};
 var _gaq = _gaq || [];
 _gaq.push(
 ['siteTracker._setAccount', 'UA-18071-1'],
 ['siteTracker._trackPageview']);
 
 
 </script>
 
 
 <title>control.js - 
 controljs -
 
 
 A JavaScript module for making scripts load faster.  - Google Project Hosting
 </title>
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" >
 
 <meta name="ROBOTS" content="NOARCHIVE">
 
 <link type="text/css" rel="stylesheet" href="http://www.gstatic.com/codesite/ph/3282150342600863652/css/ph_core.css">
 
 <link type="text/css" rel="stylesheet" href="http://www.gstatic.com/codesite/ph/3282150342600863652/css/ph_detail.css" >
 
 
 <link type="text/css" rel="stylesheet" href="http://www.gstatic.com/codesite/ph/3282150342600863652/css/d_sb.css" >
 
 
 
<!--[if IE]>
 <link type="text/css" rel="stylesheet" href="http://www.gstatic.com/codesite/ph/3282150342600863652/css/d_ie.css" >
<![endif]-->
 <style type="text/css">
 .menuIcon.off { background: no-repeat url(http://www.gstatic.com/codesite/ph/images/dropdown_sprite.gif) 0 -42px }
 .menuIcon.on { background: no-repeat url(http://www.gstatic.com/codesite/ph/images/dropdown_sprite.gif) 0 -28px }
 .menuIcon.down { background: no-repeat url(http://www.gstatic.com/codesite/ph/images/dropdown_sprite.gif) 0 0; }
 
 
 
  tr.inline_comment {
 background: #fff;
 vertical-align: top;
 }
 div.draft, div.published {
 padding: .3em;
 border: 1px solid #999; 
 margin-bottom: .1em;
 font-family: arial, sans-serif;
 max-width: 60em;
 }
 div.draft {
 background: #ffa;
 } 
 div.published {
 background: #e5ecf9;
 }
 div.published .body, div.draft .body {
 padding: .5em .1em .1em .1em;
 max-width: 60em;
 white-space: pre-wrap;
 white-space: -moz-pre-wrap;
 white-space: -pre-wrap;
 white-space: -o-pre-wrap;
 word-wrap: break-word;
 font-size: 1em;
 }
 div.draft .actions {
 margin-left: 1em;
 font-size: 90%;
 }
 div.draft form {
 padding: .5em .5em .5em 0;
 }
 div.draft textarea, div.published textarea {
 width: 95%;
 height: 10em;
 font-family: arial, sans-serif;
 margin-bottom: .5em;
 }

 
 .nocursor, .nocursor td, .cursor_hidden, .cursor_hidden td {
 background-color: white;
 height: 2px;
 }
 .cursor, .cursor td {
 background-color: darkblue;
 height: 2px;
 display: '';
 }
 
 
.list {
 border: 1px solid white;
 border-bottom: 0;
}

 
 </style>
</head>
<body class="t4">
<script type="text/javascript">
 (function() {
 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
 (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ga);
 })();
</script>
<div class="headbg">

 <div id="gaia">
 

 <span>
 
 <a href="#" id="projects-dropdown" onclick="return false;"><u>My favorites</u> <small>&#9660;</small></a>
 | <a href="https://www.google.com/accounts/ServiceLogin?service=code&amp;ltmpl=phosting&amp;continue=http%3A%2F%2Fcode.google.com%2Fp%2Fcontroljs%2Fsource%2Fbrowse%2Ftrunk%2Fcontrol.js&amp;followup=http%3A%2F%2Fcode.google.com%2Fp%2Fcontroljs%2Fsource%2Fbrowse%2Ftrunk%2Fcontrol.js" onclick="_CS_click('/gb/ph/signin');"><u>Sign in</u></a>
 
 </span>

 </div>

 <div class="gbh" style="left: 0pt;"></div>
 <div class="gbh" style="right: 0pt;"></div>
 
 
 <div style="height: 1px"></div>
<!--[if lte IE 7]>
<div style="text-align:center;">
Your version of Internet Explorer is not supported. Try a browser that
contributes to open source, such as <a href="http://www.firefox.com">Firefox</a>,
<a href="http://www.google.com/chrome">Google Chrome</a>, or
<a href="http://code.google.com/chrome/chromeframe/">Google Chrome Frame</a>.
</div>
<![endif]-->




 <table style="padding:0px; margin: 0px 0px 10px 0px; width:100%" cellpadding="0" cellspacing="0">
 <tr style="height: 58px;">
 
 <td id="plogo">
 <a href="/p/controljs/">
 
 <img src="http://www.gstatic.com/codesite/ph/images/defaultlogo.png" alt="Logo">
 
 </a>
 </td>
 
 <td style="padding-left: 0.5em">
 
 <div id="pname">
 <a href="/p/controljs/">controljs</a>
 </div>
 
 <div id="psum">
 <a id="project_summary_link" href="/p/controljs/" >A JavaScript module for making scripts load faster. </a>
 
 </div>
 
 
 </td>
 <td style="white-space:nowrap;text-align:right; vertical-align:bottom;">
 
 <form action="/hosting/search">
 <input size="30" name="q" value="" type="text">
 
 <input type="submit" name="projectsearch" value="Search projects" >
 </form>
 
 </tr>
 </table>

</div>

 
<div id="mt" class="gtb"> 
 <a href="/p/controljs/" class="tab ">Project&nbsp;Home</a>
 
 
 
 
 <a href="/p/controljs/downloads/list" class="tab ">Downloads</a>
 
 
 
 
 
 <a href="/p/controljs/w/list" class="tab ">Wiki</a>
 
 
 
 
 
 <a href="/p/controljs/issues/list"
 class="tab ">Issues</a>
 
 
 
 
 
 <a href="/p/controljs/source/checkout"
 class="tab active">Source</a>
 
 
 
 
 
 <div class=gtbc></div>
</div>
<table cellspacing="0" cellpadding="0" width="100%" align="center" border="0" class="st">
 <tr>
 
 
 
 
 
 
 <td class="subt">
 <div class="st2">
 <div class="isf">
 
 


 <span class="inst1"><a href="/p/controljs/source/checkout">Checkout</a></span> &nbsp;
 <span class="inst2"><a href="/p/controljs/source/browse/">Browse</a></span> &nbsp;
 <span class="inst3"><a href="/p/controljs/source/list">Changes</a></span> &nbsp;
 
 <form action="http://www.google.com/codesearch" method="get" style="display:inline"
 onsubmit="document.getElementById('codesearchq').value = document.getElementById('origq').value + ' package:http://controljs\\.googlecode\\.com'">
 <input type="hidden" name="q" id="codesearchq" value="">
 <input type="text" maxlength="2048" size="38" id="origq" name="origq" value="" title="Google Code Search" style="font-size:92%">&nbsp;<input type="submit" value="Search Trunk" name="btnG" style="font-size:92%">
 
 
 
 </form>
 </div>
</div>

 </td>
 
 
 
 <td align="right" valign="top" class="bevel-right"></td>
 </tr>
</table>


<script type="text/javascript">
 var cancelBubble = false;
 function _go(url) { document.location = url; }
</script>
<div id="maincol"
 
>

 
<!-- IE -->




<div class="expand">
<div id="colcontrol">
<style type="text/css">
 #file_flipper { white-space: nowrap; padding-right: 2em; }
 #file_flipper.hidden { display: none; }
 #file_flipper .pagelink { color: #0000CC; text-decoration: underline; }
 #file_flipper #visiblefiles { padding-left: 0.5em; padding-right: 0.5em; }
</style>
<table id="nav_and_rev" class="list"
 cellpadding="0" cellspacing="0" width="100%">
 <tr>
 
 <td nowrap="nowrap" class="src_crumbs src_nav" width="33%">
 <strong class="src_nav">Source path:&nbsp;</strong>
 <span id="crumb_root">
 
 <a href="/p/controljs/source/browse/">svn</a>/&nbsp;</span>
 <span id="crumb_links" class="ifClosed"><a href="/p/controljs/source/browse/trunk/">trunk</a><span class="sp">/&nbsp;</span>control.js</span>
 
 

 </td>
 
 
 <td nowrap="nowrap" width="33%" align="right">
 <table cellpadding="0" cellspacing="0" style="font-size: 100%"><tr>
 
 
 <td class="flipper">
 <ul class="leftside">
 
 <li><a href="/p/controljs/source/browse/trunk/control.js?r=11" title="Previous">&lsaquo;r11</a></li>
 
 </ul>
 </td>
 
 <td class="flipper"><b>r12</b></td>
 
 </tr></table>
 </td> 
 </tr>
</table>

<div class="fc">
 
 
 
<style type="text/css">
.undermouse span {
 background-image: url(http://www.gstatic.com/codesite/ph/images/comments.gif); }
</style>
<table class="opened" id="review_comment_area"
><tr>
<td id="nums">
<pre><table width="100%"><tr class="nocursor"><td></td></tr></table></pre>
<pre><table width="100%" id="nums_table_0"><tr id="gr_svn12_1"

><td id="1"><a href="#1">1</a></td></tr
><tr id="gr_svn12_2"

><td id="2"><a href="#2">2</a></td></tr
><tr id="gr_svn12_3"

><td id="3"><a href="#3">3</a></td></tr
><tr id="gr_svn12_4"

><td id="4"><a href="#4">4</a></td></tr
><tr id="gr_svn12_5"

><td id="5"><a href="#5">5</a></td></tr
><tr id="gr_svn12_6"

><td id="6"><a href="#6">6</a></td></tr
><tr id="gr_svn12_7"

><td id="7"><a href="#7">7</a></td></tr
><tr id="gr_svn12_8"

><td id="8"><a href="#8">8</a></td></tr
><tr id="gr_svn12_9"

><td id="9"><a href="#9">9</a></td></tr
><tr id="gr_svn12_10"

><td id="10"><a href="#10">10</a></td></tr
><tr id="gr_svn12_11"

><td id="11"><a href="#11">11</a></td></tr
><tr id="gr_svn12_12"

><td id="12"><a href="#12">12</a></td></tr
><tr id="gr_svn12_13"

><td id="13"><a href="#13">13</a></td></tr
><tr id="gr_svn12_14"

><td id="14"><a href="#14">14</a></td></tr
><tr id="gr_svn12_15"

><td id="15"><a href="#15">15</a></td></tr
><tr id="gr_svn12_16"

><td id="16"><a href="#16">16</a></td></tr
><tr id="gr_svn12_17"

><td id="17"><a href="#17">17</a></td></tr
><tr id="gr_svn12_18"

><td id="18"><a href="#18">18</a></td></tr
><tr id="gr_svn12_19"

><td id="19"><a href="#19">19</a></td></tr
><tr id="gr_svn12_20"

><td id="20"><a href="#20">20</a></td></tr
><tr id="gr_svn12_21"

><td id="21"><a href="#21">21</a></td></tr
><tr id="gr_svn12_22"

><td id="22"><a href="#22">22</a></td></tr
><tr id="gr_svn12_23"

><td id="23"><a href="#23">23</a></td></tr
><tr id="gr_svn12_24"

><td id="24"><a href="#24">24</a></td></tr
><tr id="gr_svn12_25"

><td id="25"><a href="#25">25</a></td></tr
><tr id="gr_svn12_26"

><td id="26"><a href="#26">26</a></td></tr
><tr id="gr_svn12_27"

><td id="27"><a href="#27">27</a></td></tr
><tr id="gr_svn12_28"

><td id="28"><a href="#28">28</a></td></tr
><tr id="gr_svn12_29"

><td id="29"><a href="#29">29</a></td></tr
><tr id="gr_svn12_30"

><td id="30"><a href="#30">30</a></td></tr
><tr id="gr_svn12_31"

><td id="31"><a href="#31">31</a></td></tr
><tr id="gr_svn12_32"

><td id="32"><a href="#32">32</a></td></tr
><tr id="gr_svn12_33"

><td id="33"><a href="#33">33</a></td></tr
><tr id="gr_svn12_34"

><td id="34"><a href="#34">34</a></td></tr
><tr id="gr_svn12_35"

><td id="35"><a href="#35">35</a></td></tr
><tr id="gr_svn12_36"

><td id="36"><a href="#36">36</a></td></tr
><tr id="gr_svn12_37"

><td id="37"><a href="#37">37</a></td></tr
><tr id="gr_svn12_38"

><td id="38"><a href="#38">38</a></td></tr
><tr id="gr_svn12_39"

><td id="39"><a href="#39">39</a></td></tr
><tr id="gr_svn12_40"

><td id="40"><a href="#40">40</a></td></tr
><tr id="gr_svn12_41"

><td id="41"><a href="#41">41</a></td></tr
><tr id="gr_svn12_42"

><td id="42"><a href="#42">42</a></td></tr
><tr id="gr_svn12_43"

><td id="43"><a href="#43">43</a></td></tr
><tr id="gr_svn12_44"

><td id="44"><a href="#44">44</a></td></tr
><tr id="gr_svn12_45"

><td id="45"><a href="#45">45</a></td></tr
><tr id="gr_svn12_46"

><td id="46"><a href="#46">46</a></td></tr
><tr id="gr_svn12_47"

><td id="47"><a href="#47">47</a></td></tr
><tr id="gr_svn12_48"

><td id="48"><a href="#48">48</a></td></tr
><tr id="gr_svn12_49"

><td id="49"><a href="#49">49</a></td></tr
><tr id="gr_svn12_50"

><td id="50"><a href="#50">50</a></td></tr
><tr id="gr_svn12_51"

><td id="51"><a href="#51">51</a></td></tr
><tr id="gr_svn12_52"

><td id="52"><a href="#52">52</a></td></tr
><tr id="gr_svn12_53"

><td id="53"><a href="#53">53</a></td></tr
><tr id="gr_svn12_54"

><td id="54"><a href="#54">54</a></td></tr
><tr id="gr_svn12_55"

><td id="55"><a href="#55">55</a></td></tr
><tr id="gr_svn12_56"

><td id="56"><a href="#56">56</a></td></tr
><tr id="gr_svn12_57"

><td id="57"><a href="#57">57</a></td></tr
><tr id="gr_svn12_58"

><td id="58"><a href="#58">58</a></td></tr
><tr id="gr_svn12_59"

><td id="59"><a href="#59">59</a></td></tr
><tr id="gr_svn12_60"

><td id="60"><a href="#60">60</a></td></tr
><tr id="gr_svn12_61"

><td id="61"><a href="#61">61</a></td></tr
><tr id="gr_svn12_62"

><td id="62"><a href="#62">62</a></td></tr
><tr id="gr_svn12_63"

><td id="63"><a href="#63">63</a></td></tr
><tr id="gr_svn12_64"

><td id="64"><a href="#64">64</a></td></tr
><tr id="gr_svn12_65"

><td id="65"><a href="#65">65</a></td></tr
><tr id="gr_svn12_66"

><td id="66"><a href="#66">66</a></td></tr
><tr id="gr_svn12_67"

><td id="67"><a href="#67">67</a></td></tr
><tr id="gr_svn12_68"

><td id="68"><a href="#68">68</a></td></tr
><tr id="gr_svn12_69"

><td id="69"><a href="#69">69</a></td></tr
><tr id="gr_svn12_70"

><td id="70"><a href="#70">70</a></td></tr
><tr id="gr_svn12_71"

><td id="71"><a href="#71">71</a></td></tr
><tr id="gr_svn12_72"

><td id="72"><a href="#72">72</a></td></tr
><tr id="gr_svn12_73"

><td id="73"><a href="#73">73</a></td></tr
><tr id="gr_svn12_74"

><td id="74"><a href="#74">74</a></td></tr
><tr id="gr_svn12_75"

><td id="75"><a href="#75">75</a></td></tr
><tr id="gr_svn12_76"

><td id="76"><a href="#76">76</a></td></tr
><tr id="gr_svn12_77"

><td id="77"><a href="#77">77</a></td></tr
><tr id="gr_svn12_78"

><td id="78"><a href="#78">78</a></td></tr
><tr id="gr_svn12_79"

><td id="79"><a href="#79">79</a></td></tr
><tr id="gr_svn12_80"

><td id="80"><a href="#80">80</a></td></tr
><tr id="gr_svn12_81"

><td id="81"><a href="#81">81</a></td></tr
><tr id="gr_svn12_82"

><td id="82"><a href="#82">82</a></td></tr
><tr id="gr_svn12_83"

><td id="83"><a href="#83">83</a></td></tr
><tr id="gr_svn12_84"

><td id="84"><a href="#84">84</a></td></tr
><tr id="gr_svn12_85"

><td id="85"><a href="#85">85</a></td></tr
><tr id="gr_svn12_86"

><td id="86"><a href="#86">86</a></td></tr
><tr id="gr_svn12_87"

><td id="87"><a href="#87">87</a></td></tr
><tr id="gr_svn12_88"

><td id="88"><a href="#88">88</a></td></tr
><tr id="gr_svn12_89"

><td id="89"><a href="#89">89</a></td></tr
><tr id="gr_svn12_90"

><td id="90"><a href="#90">90</a></td></tr
><tr id="gr_svn12_91"

><td id="91"><a href="#91">91</a></td></tr
><tr id="gr_svn12_92"

><td id="92"><a href="#92">92</a></td></tr
><tr id="gr_svn12_93"

><td id="93"><a href="#93">93</a></td></tr
><tr id="gr_svn12_94"

><td id="94"><a href="#94">94</a></td></tr
><tr id="gr_svn12_95"

><td id="95"><a href="#95">95</a></td></tr
><tr id="gr_svn12_96"

><td id="96"><a href="#96">96</a></td></tr
><tr id="gr_svn12_97"

><td id="97"><a href="#97">97</a></td></tr
><tr id="gr_svn12_98"

><td id="98"><a href="#98">98</a></td></tr
><tr id="gr_svn12_99"

><td id="99"><a href="#99">99</a></td></tr
><tr id="gr_svn12_100"

><td id="100"><a href="#100">100</a></td></tr
><tr id="gr_svn12_101"

><td id="101"><a href="#101">101</a></td></tr
><tr id="gr_svn12_102"

><td id="102"><a href="#102">102</a></td></tr
><tr id="gr_svn12_103"

><td id="103"><a href="#103">103</a></td></tr
><tr id="gr_svn12_104"

><td id="104"><a href="#104">104</a></td></tr
><tr id="gr_svn12_105"

><td id="105"><a href="#105">105</a></td></tr
><tr id="gr_svn12_106"

><td id="106"><a href="#106">106</a></td></tr
><tr id="gr_svn12_107"

><td id="107"><a href="#107">107</a></td></tr
><tr id="gr_svn12_108"

><td id="108"><a href="#108">108</a></td></tr
><tr id="gr_svn12_109"

><td id="109"><a href="#109">109</a></td></tr
><tr id="gr_svn12_110"

><td id="110"><a href="#110">110</a></td></tr
><tr id="gr_svn12_111"

><td id="111"><a href="#111">111</a></td></tr
><tr id="gr_svn12_112"

><td id="112"><a href="#112">112</a></td></tr
><tr id="gr_svn12_113"

><td id="113"><a href="#113">113</a></td></tr
><tr id="gr_svn12_114"

><td id="114"><a href="#114">114</a></td></tr
><tr id="gr_svn12_115"

><td id="115"><a href="#115">115</a></td></tr
><tr id="gr_svn12_116"

><td id="116"><a href="#116">116</a></td></tr
><tr id="gr_svn12_117"

><td id="117"><a href="#117">117</a></td></tr
><tr id="gr_svn12_118"

><td id="118"><a href="#118">118</a></td></tr
><tr id="gr_svn12_119"

><td id="119"><a href="#119">119</a></td></tr
><tr id="gr_svn12_120"

><td id="120"><a href="#120">120</a></td></tr
><tr id="gr_svn12_121"

><td id="121"><a href="#121">121</a></td></tr
><tr id="gr_svn12_122"

><td id="122"><a href="#122">122</a></td></tr
><tr id="gr_svn12_123"

><td id="123"><a href="#123">123</a></td></tr
><tr id="gr_svn12_124"

><td id="124"><a href="#124">124</a></td></tr
><tr id="gr_svn12_125"

><td id="125"><a href="#125">125</a></td></tr
><tr id="gr_svn12_126"

><td id="126"><a href="#126">126</a></td></tr
><tr id="gr_svn12_127"

><td id="127"><a href="#127">127</a></td></tr
><tr id="gr_svn12_128"

><td id="128"><a href="#128">128</a></td></tr
><tr id="gr_svn12_129"

><td id="129"><a href="#129">129</a></td></tr
><tr id="gr_svn12_130"

><td id="130"><a href="#130">130</a></td></tr
><tr id="gr_svn12_131"

><td id="131"><a href="#131">131</a></td></tr
><tr id="gr_svn12_132"

><td id="132"><a href="#132">132</a></td></tr
><tr id="gr_svn12_133"

><td id="133"><a href="#133">133</a></td></tr
><tr id="gr_svn12_134"

><td id="134"><a href="#134">134</a></td></tr
><tr id="gr_svn12_135"

><td id="135"><a href="#135">135</a></td></tr
><tr id="gr_svn12_136"

><td id="136"><a href="#136">136</a></td></tr
><tr id="gr_svn12_137"

><td id="137"><a href="#137">137</a></td></tr
><tr id="gr_svn12_138"

><td id="138"><a href="#138">138</a></td></tr
><tr id="gr_svn12_139"

><td id="139"><a href="#139">139</a></td></tr
><tr id="gr_svn12_140"

><td id="140"><a href="#140">140</a></td></tr
><tr id="gr_svn12_141"

><td id="141"><a href="#141">141</a></td></tr
><tr id="gr_svn12_142"

><td id="142"><a href="#142">142</a></td></tr
><tr id="gr_svn12_143"

><td id="143"><a href="#143">143</a></td></tr
><tr id="gr_svn12_144"

><td id="144"><a href="#144">144</a></td></tr
><tr id="gr_svn12_145"

><td id="145"><a href="#145">145</a></td></tr
><tr id="gr_svn12_146"

><td id="146"><a href="#146">146</a></td></tr
><tr id="gr_svn12_147"

><td id="147"><a href="#147">147</a></td></tr
><tr id="gr_svn12_148"

><td id="148"><a href="#148">148</a></td></tr
><tr id="gr_svn12_149"

><td id="149"><a href="#149">149</a></td></tr
><tr id="gr_svn12_150"

><td id="150"><a href="#150">150</a></td></tr
><tr id="gr_svn12_151"

><td id="151"><a href="#151">151</a></td></tr
><tr id="gr_svn12_152"

><td id="152"><a href="#152">152</a></td></tr
><tr id="gr_svn12_153"

><td id="153"><a href="#153">153</a></td></tr
><tr id="gr_svn12_154"

><td id="154"><a href="#154">154</a></td></tr
><tr id="gr_svn12_155"

><td id="155"><a href="#155">155</a></td></tr
><tr id="gr_svn12_156"

><td id="156"><a href="#156">156</a></td></tr
><tr id="gr_svn12_157"

><td id="157"><a href="#157">157</a></td></tr
><tr id="gr_svn12_158"

><td id="158"><a href="#158">158</a></td></tr
><tr id="gr_svn12_159"

><td id="159"><a href="#159">159</a></td></tr
><tr id="gr_svn12_160"

><td id="160"><a href="#160">160</a></td></tr
><tr id="gr_svn12_161"

><td id="161"><a href="#161">161</a></td></tr
><tr id="gr_svn12_162"

><td id="162"><a href="#162">162</a></td></tr
><tr id="gr_svn12_163"

><td id="163"><a href="#163">163</a></td></tr
><tr id="gr_svn12_164"

><td id="164"><a href="#164">164</a></td></tr
><tr id="gr_svn12_165"

><td id="165"><a href="#165">165</a></td></tr
><tr id="gr_svn12_166"

><td id="166"><a href="#166">166</a></td></tr
><tr id="gr_svn12_167"

><td id="167"><a href="#167">167</a></td></tr
><tr id="gr_svn12_168"

><td id="168"><a href="#168">168</a></td></tr
><tr id="gr_svn12_169"

><td id="169"><a href="#169">169</a></td></tr
><tr id="gr_svn12_170"

><td id="170"><a href="#170">170</a></td></tr
><tr id="gr_svn12_171"

><td id="171"><a href="#171">171</a></td></tr
><tr id="gr_svn12_172"

><td id="172"><a href="#172">172</a></td></tr
><tr id="gr_svn12_173"

><td id="173"><a href="#173">173</a></td></tr
><tr id="gr_svn12_174"

><td id="174"><a href="#174">174</a></td></tr
><tr id="gr_svn12_175"

><td id="175"><a href="#175">175</a></td></tr
><tr id="gr_svn12_176"

><td id="176"><a href="#176">176</a></td></tr
><tr id="gr_svn12_177"

><td id="177"><a href="#177">177</a></td></tr
><tr id="gr_svn12_178"

><td id="178"><a href="#178">178</a></td></tr
><tr id="gr_svn12_179"

><td id="179"><a href="#179">179</a></td></tr
><tr id="gr_svn12_180"

><td id="180"><a href="#180">180</a></td></tr
><tr id="gr_svn12_181"

><td id="181"><a href="#181">181</a></td></tr
><tr id="gr_svn12_182"

><td id="182"><a href="#182">182</a></td></tr
><tr id="gr_svn12_183"

><td id="183"><a href="#183">183</a></td></tr
><tr id="gr_svn12_184"

><td id="184"><a href="#184">184</a></td></tr
><tr id="gr_svn12_185"

><td id="185"><a href="#185">185</a></td></tr
><tr id="gr_svn12_186"

><td id="186"><a href="#186">186</a></td></tr
><tr id="gr_svn12_187"

><td id="187"><a href="#187">187</a></td></tr
><tr id="gr_svn12_188"

><td id="188"><a href="#188">188</a></td></tr
><tr id="gr_svn12_189"

><td id="189"><a href="#189">189</a></td></tr
><tr id="gr_svn12_190"

><td id="190"><a href="#190">190</a></td></tr
><tr id="gr_svn12_191"

><td id="191"><a href="#191">191</a></td></tr
><tr id="gr_svn12_192"

><td id="192"><a href="#192">192</a></td></tr
><tr id="gr_svn12_193"

><td id="193"><a href="#193">193</a></td></tr
><tr id="gr_svn12_194"

><td id="194"><a href="#194">194</a></td></tr
><tr id="gr_svn12_195"

><td id="195"><a href="#195">195</a></td></tr
><tr id="gr_svn12_196"

><td id="196"><a href="#196">196</a></td></tr
><tr id="gr_svn12_197"

><td id="197"><a href="#197">197</a></td></tr
><tr id="gr_svn12_198"

><td id="198"><a href="#198">198</a></td></tr
><tr id="gr_svn12_199"

><td id="199"><a href="#199">199</a></td></tr
><tr id="gr_svn12_200"

><td id="200"><a href="#200">200</a></td></tr
><tr id="gr_svn12_201"

><td id="201"><a href="#201">201</a></td></tr
><tr id="gr_svn12_202"

><td id="202"><a href="#202">202</a></td></tr
><tr id="gr_svn12_203"

><td id="203"><a href="#203">203</a></td></tr
><tr id="gr_svn12_204"

><td id="204"><a href="#204">204</a></td></tr
><tr id="gr_svn12_205"

><td id="205"><a href="#205">205</a></td></tr
><tr id="gr_svn12_206"

><td id="206"><a href="#206">206</a></td></tr
><tr id="gr_svn12_207"

><td id="207"><a href="#207">207</a></td></tr
><tr id="gr_svn12_208"

><td id="208"><a href="#208">208</a></td></tr
><tr id="gr_svn12_209"

><td id="209"><a href="#209">209</a></td></tr
><tr id="gr_svn12_210"

><td id="210"><a href="#210">210</a></td></tr
><tr id="gr_svn12_211"

><td id="211"><a href="#211">211</a></td></tr
><tr id="gr_svn12_212"

><td id="212"><a href="#212">212</a></td></tr
><tr id="gr_svn12_213"

><td id="213"><a href="#213">213</a></td></tr
><tr id="gr_svn12_214"

><td id="214"><a href="#214">214</a></td></tr
><tr id="gr_svn12_215"

><td id="215"><a href="#215">215</a></td></tr
><tr id="gr_svn12_216"

><td id="216"><a href="#216">216</a></td></tr
><tr id="gr_svn12_217"

><td id="217"><a href="#217">217</a></td></tr
><tr id="gr_svn12_218"

><td id="218"><a href="#218">218</a></td></tr
><tr id="gr_svn12_219"

><td id="219"><a href="#219">219</a></td></tr
><tr id="gr_svn12_220"

><td id="220"><a href="#220">220</a></td></tr
><tr id="gr_svn12_221"

><td id="221"><a href="#221">221</a></td></tr
><tr id="gr_svn12_222"

><td id="222"><a href="#222">222</a></td></tr
><tr id="gr_svn12_223"

><td id="223"><a href="#223">223</a></td></tr
><tr id="gr_svn12_224"

><td id="224"><a href="#224">224</a></td></tr
><tr id="gr_svn12_225"

><td id="225"><a href="#225">225</a></td></tr
><tr id="gr_svn12_226"

><td id="226"><a href="#226">226</a></td></tr
><tr id="gr_svn12_227"

><td id="227"><a href="#227">227</a></td></tr
><tr id="gr_svn12_228"

><td id="228"><a href="#228">228</a></td></tr
><tr id="gr_svn12_229"

><td id="229"><a href="#229">229</a></td></tr
><tr id="gr_svn12_230"

><td id="230"><a href="#230">230</a></td></tr
><tr id="gr_svn12_231"

><td id="231"><a href="#231">231</a></td></tr
><tr id="gr_svn12_232"

><td id="232"><a href="#232">232</a></td></tr
><tr id="gr_svn12_233"

><td id="233"><a href="#233">233</a></td></tr
><tr id="gr_svn12_234"

><td id="234"><a href="#234">234</a></td></tr
><tr id="gr_svn12_235"

><td id="235"><a href="#235">235</a></td></tr
><tr id="gr_svn12_236"

><td id="236"><a href="#236">236</a></td></tr
><tr id="gr_svn12_237"

><td id="237"><a href="#237">237</a></td></tr
><tr id="gr_svn12_238"

><td id="238"><a href="#238">238</a></td></tr
><tr id="gr_svn12_239"

><td id="239"><a href="#239">239</a></td></tr
><tr id="gr_svn12_240"

><td id="240"><a href="#240">240</a></td></tr
><tr id="gr_svn12_241"

><td id="241"><a href="#241">241</a></td></tr
><tr id="gr_svn12_242"

><td id="242"><a href="#242">242</a></td></tr
><tr id="gr_svn12_243"

><td id="243"><a href="#243">243</a></td></tr
><tr id="gr_svn12_244"

><td id="244"><a href="#244">244</a></td></tr
><tr id="gr_svn12_245"

><td id="245"><a href="#245">245</a></td></tr
><tr id="gr_svn12_246"

><td id="246"><a href="#246">246</a></td></tr
><tr id="gr_svn12_247"

><td id="247"><a href="#247">247</a></td></tr
><tr id="gr_svn12_248"

><td id="248"><a href="#248">248</a></td></tr
><tr id="gr_svn12_249"

><td id="249"><a href="#249">249</a></td></tr
><tr id="gr_svn12_250"

><td id="250"><a href="#250">250</a></td></tr
><tr id="gr_svn12_251"

><td id="251"><a href="#251">251</a></td></tr
><tr id="gr_svn12_252"

><td id="252"><a href="#252">252</a></td></tr
><tr id="gr_svn12_253"

><td id="253"><a href="#253">253</a></td></tr
><tr id="gr_svn12_254"

><td id="254"><a href="#254">254</a></td></tr
><tr id="gr_svn12_255"

><td id="255"><a href="#255">255</a></td></tr
><tr id="gr_svn12_256"

><td id="256"><a href="#256">256</a></td></tr
><tr id="gr_svn12_257"

><td id="257"><a href="#257">257</a></td></tr
><tr id="gr_svn12_258"

><td id="258"><a href="#258">258</a></td></tr
><tr id="gr_svn12_259"

><td id="259"><a href="#259">259</a></td></tr
><tr id="gr_svn12_260"

><td id="260"><a href="#260">260</a></td></tr
><tr id="gr_svn12_261"

><td id="261"><a href="#261">261</a></td></tr
><tr id="gr_svn12_262"

><td id="262"><a href="#262">262</a></td></tr
><tr id="gr_svn12_263"

><td id="263"><a href="#263">263</a></td></tr
><tr id="gr_svn12_264"

><td id="264"><a href="#264">264</a></td></tr
><tr id="gr_svn12_265"

><td id="265"><a href="#265">265</a></td></tr
><tr id="gr_svn12_266"

><td id="266"><a href="#266">266</a></td></tr
><tr id="gr_svn12_267"

><td id="267"><a href="#267">267</a></td></tr
><tr id="gr_svn12_268"

><td id="268"><a href="#268">268</a></td></tr
><tr id="gr_svn12_269"

><td id="269"><a href="#269">269</a></td></tr
><tr id="gr_svn12_270"

><td id="270"><a href="#270">270</a></td></tr
><tr id="gr_svn12_271"

><td id="271"><a href="#271">271</a></td></tr
><tr id="gr_svn12_272"

><td id="272"><a href="#272">272</a></td></tr
><tr id="gr_svn12_273"

><td id="273"><a href="#273">273</a></td></tr
><tr id="gr_svn12_274"

><td id="274"><a href="#274">274</a></td></tr
><tr id="gr_svn12_275"

><td id="275"><a href="#275">275</a></td></tr
><tr id="gr_svn12_276"

><td id="276"><a href="#276">276</a></td></tr
><tr id="gr_svn12_277"

><td id="277"><a href="#277">277</a></td></tr
><tr id="gr_svn12_278"

><td id="278"><a href="#278">278</a></td></tr
><tr id="gr_svn12_279"

><td id="279"><a href="#279">279</a></td></tr
><tr id="gr_svn12_280"

><td id="280"><a href="#280">280</a></td></tr
><tr id="gr_svn12_281"

><td id="281"><a href="#281">281</a></td></tr
><tr id="gr_svn12_282"

><td id="282"><a href="#282">282</a></td></tr
><tr id="gr_svn12_283"

><td id="283"><a href="#283">283</a></td></tr
><tr id="gr_svn12_284"

><td id="284"><a href="#284">284</a></td></tr
><tr id="gr_svn12_285"

><td id="285"><a href="#285">285</a></td></tr
><tr id="gr_svn12_286"

><td id="286"><a href="#286">286</a></td></tr
><tr id="gr_svn12_287"

><td id="287"><a href="#287">287</a></td></tr
><tr id="gr_svn12_288"

><td id="288"><a href="#288">288</a></td></tr
><tr id="gr_svn12_289"

><td id="289"><a href="#289">289</a></td></tr
><tr id="gr_svn12_290"

><td id="290"><a href="#290">290</a></td></tr
><tr id="gr_svn12_291"

><td id="291"><a href="#291">291</a></td></tr
><tr id="gr_svn12_292"

><td id="292"><a href="#292">292</a></td></tr
><tr id="gr_svn12_293"

><td id="293"><a href="#293">293</a></td></tr
><tr id="gr_svn12_294"

><td id="294"><a href="#294">294</a></td></tr
><tr id="gr_svn12_295"

><td id="295"><a href="#295">295</a></td></tr
><tr id="gr_svn12_296"

><td id="296"><a href="#296">296</a></td></tr
><tr id="gr_svn12_297"

><td id="297"><a href="#297">297</a></td></tr
><tr id="gr_svn12_298"

><td id="298"><a href="#298">298</a></td></tr
><tr id="gr_svn12_299"

><td id="299"><a href="#299">299</a></td></tr
><tr id="gr_svn12_300"

><td id="300"><a href="#300">300</a></td></tr
><tr id="gr_svn12_301"

><td id="301"><a href="#301">301</a></td></tr
><tr id="gr_svn12_302"

><td id="302"><a href="#302">302</a></td></tr
><tr id="gr_svn12_303"

><td id="303"><a href="#303">303</a></td></tr
><tr id="gr_svn12_304"

><td id="304"><a href="#304">304</a></td></tr
><tr id="gr_svn12_305"

><td id="305"><a href="#305">305</a></td></tr
><tr id="gr_svn12_306"

><td id="306"><a href="#306">306</a></td></tr
><tr id="gr_svn12_307"

><td id="307"><a href="#307">307</a></td></tr
><tr id="gr_svn12_308"

><td id="308"><a href="#308">308</a></td></tr
><tr id="gr_svn12_309"

><td id="309"><a href="#309">309</a></td></tr
><tr id="gr_svn12_310"

><td id="310"><a href="#310">310</a></td></tr
><tr id="gr_svn12_311"

><td id="311"><a href="#311">311</a></td></tr
><tr id="gr_svn12_312"

><td id="312"><a href="#312">312</a></td></tr
><tr id="gr_svn12_313"

><td id="313"><a href="#313">313</a></td></tr
><tr id="gr_svn12_314"

><td id="314"><a href="#314">314</a></td></tr
><tr id="gr_svn12_315"

><td id="315"><a href="#315">315</a></td></tr
><tr id="gr_svn12_316"

><td id="316"><a href="#316">316</a></td></tr
><tr id="gr_svn12_317"

><td id="317"><a href="#317">317</a></td></tr
><tr id="gr_svn12_318"

><td id="318"><a href="#318">318</a></td></tr
><tr id="gr_svn12_319"

><td id="319"><a href="#319">319</a></td></tr
><tr id="gr_svn12_320"

><td id="320"><a href="#320">320</a></td></tr
><tr id="gr_svn12_321"

><td id="321"><a href="#321">321</a></td></tr
><tr id="gr_svn12_322"

><td id="322"><a href="#322">322</a></td></tr
><tr id="gr_svn12_323"

><td id="323"><a href="#323">323</a></td></tr
><tr id="gr_svn12_324"

><td id="324"><a href="#324">324</a></td></tr
><tr id="gr_svn12_325"

><td id="325"><a href="#325">325</a></td></tr
><tr id="gr_svn12_326"

><td id="326"><a href="#326">326</a></td></tr
><tr id="gr_svn12_327"

><td id="327"><a href="#327">327</a></td></tr
><tr id="gr_svn12_328"

><td id="328"><a href="#328">328</a></td></tr
><tr id="gr_svn12_329"

><td id="329"><a href="#329">329</a></td></tr
><tr id="gr_svn12_330"

><td id="330"><a href="#330">330</a></td></tr
><tr id="gr_svn12_331"

><td id="331"><a href="#331">331</a></td></tr
><tr id="gr_svn12_332"

><td id="332"><a href="#332">332</a></td></tr
><tr id="gr_svn12_333"

><td id="333"><a href="#333">333</a></td></tr
><tr id="gr_svn12_334"

><td id="334"><a href="#334">334</a></td></tr
><tr id="gr_svn12_335"

><td id="335"><a href="#335">335</a></td></tr
><tr id="gr_svn12_336"

><td id="336"><a href="#336">336</a></td></tr
><tr id="gr_svn12_337"

><td id="337"><a href="#337">337</a></td></tr
><tr id="gr_svn12_338"

><td id="338"><a href="#338">338</a></td></tr
><tr id="gr_svn12_339"

><td id="339"><a href="#339">339</a></td></tr
><tr id="gr_svn12_340"

><td id="340"><a href="#340">340</a></td></tr
><tr id="gr_svn12_341"

><td id="341"><a href="#341">341</a></td></tr
><tr id="gr_svn12_342"

><td id="342"><a href="#342">342</a></td></tr
><tr id="gr_svn12_343"

><td id="343"><a href="#343">343</a></td></tr
><tr id="gr_svn12_344"

><td id="344"><a href="#344">344</a></td></tr
><tr id="gr_svn12_345"

><td id="345"><a href="#345">345</a></td></tr
><tr id="gr_svn12_346"

><td id="346"><a href="#346">346</a></td></tr
><tr id="gr_svn12_347"

><td id="347"><a href="#347">347</a></td></tr
><tr id="gr_svn12_348"

><td id="348"><a href="#348">348</a></td></tr
><tr id="gr_svn12_349"

><td id="349"><a href="#349">349</a></td></tr
><tr id="gr_svn12_350"

><td id="350"><a href="#350">350</a></td></tr
><tr id="gr_svn12_351"

><td id="351"><a href="#351">351</a></td></tr
><tr id="gr_svn12_352"

><td id="352"><a href="#352">352</a></td></tr
><tr id="gr_svn12_353"

><td id="353"><a href="#353">353</a></td></tr
><tr id="gr_svn12_354"

><td id="354"><a href="#354">354</a></td></tr
><tr id="gr_svn12_355"

><td id="355"><a href="#355">355</a></td></tr
><tr id="gr_svn12_356"

><td id="356"><a href="#356">356</a></td></tr
><tr id="gr_svn12_357"

><td id="357"><a href="#357">357</a></td></tr
><tr id="gr_svn12_358"

><td id="358"><a href="#358">358</a></td></tr
><tr id="gr_svn12_359"

><td id="359"><a href="#359">359</a></td></tr
><tr id="gr_svn12_360"

><td id="360"><a href="#360">360</a></td></tr
><tr id="gr_svn12_361"

><td id="361"><a href="#361">361</a></td></tr
><tr id="gr_svn12_362"

><td id="362"><a href="#362">362</a></td></tr
><tr id="gr_svn12_363"

><td id="363"><a href="#363">363</a></td></tr
><tr id="gr_svn12_364"

><td id="364"><a href="#364">364</a></td></tr
><tr id="gr_svn12_365"

><td id="365"><a href="#365">365</a></td></tr
><tr id="gr_svn12_366"

><td id="366"><a href="#366">366</a></td></tr
><tr id="gr_svn12_367"

><td id="367"><a href="#367">367</a></td></tr
><tr id="gr_svn12_368"

><td id="368"><a href="#368">368</a></td></tr
><tr id="gr_svn12_369"

><td id="369"><a href="#369">369</a></td></tr
><tr id="gr_svn12_370"

><td id="370"><a href="#370">370</a></td></tr
><tr id="gr_svn12_371"

><td id="371"><a href="#371">371</a></td></tr
><tr id="gr_svn12_372"

><td id="372"><a href="#372">372</a></td></tr
><tr id="gr_svn12_373"

><td id="373"><a href="#373">373</a></td></tr
><tr id="gr_svn12_374"

><td id="374"><a href="#374">374</a></td></tr
><tr id="gr_svn12_375"

><td id="375"><a href="#375">375</a></td></tr
><tr id="gr_svn12_376"

><td id="376"><a href="#376">376</a></td></tr
><tr id="gr_svn12_377"

><td id="377"><a href="#377">377</a></td></tr
><tr id="gr_svn12_378"

><td id="378"><a href="#378">378</a></td></tr
><tr id="gr_svn12_379"

><td id="379"><a href="#379">379</a></td></tr
><tr id="gr_svn12_380"

><td id="380"><a href="#380">380</a></td></tr
><tr id="gr_svn12_381"

><td id="381"><a href="#381">381</a></td></tr
><tr id="gr_svn12_382"

><td id="382"><a href="#382">382</a></td></tr
><tr id="gr_svn12_383"

><td id="383"><a href="#383">383</a></td></tr
><tr id="gr_svn12_384"

><td id="384"><a href="#384">384</a></td></tr
><tr id="gr_svn12_385"

><td id="385"><a href="#385">385</a></td></tr
><tr id="gr_svn12_386"

><td id="386"><a href="#386">386</a></td></tr
><tr id="gr_svn12_387"

><td id="387"><a href="#387">387</a></td></tr
><tr id="gr_svn12_388"

><td id="388"><a href="#388">388</a></td></tr
><tr id="gr_svn12_389"

><td id="389"><a href="#389">389</a></td></tr
><tr id="gr_svn12_390"

><td id="390"><a href="#390">390</a></td></tr
><tr id="gr_svn12_391"

><td id="391"><a href="#391">391</a></td></tr
><tr id="gr_svn12_392"

><td id="392"><a href="#392">392</a></td></tr
><tr id="gr_svn12_393"

><td id="393"><a href="#393">393</a></td></tr
><tr id="gr_svn12_394"

><td id="394"><a href="#394">394</a></td></tr
><tr id="gr_svn12_395"

><td id="395"><a href="#395">395</a></td></tr
><tr id="gr_svn12_396"

><td id="396"><a href="#396">396</a></td></tr
><tr id="gr_svn12_397"

><td id="397"><a href="#397">397</a></td></tr
><tr id="gr_svn12_398"

><td id="398"><a href="#398">398</a></td></tr
><tr id="gr_svn12_399"

><td id="399"><a href="#399">399</a></td></tr
><tr id="gr_svn12_400"

><td id="400"><a href="#400">400</a></td></tr
><tr id="gr_svn12_401"

><td id="401"><a href="#401">401</a></td></tr
><tr id="gr_svn12_402"

><td id="402"><a href="#402">402</a></td></tr
><tr id="gr_svn12_403"

><td id="403"><a href="#403">403</a></td></tr
><tr id="gr_svn12_404"

><td id="404"><a href="#404">404</a></td></tr
><tr id="gr_svn12_405"

><td id="405"><a href="#405">405</a></td></tr
><tr id="gr_svn12_406"

><td id="406"><a href="#406">406</a></td></tr
><tr id="gr_svn12_407"

><td id="407"><a href="#407">407</a></td></tr
><tr id="gr_svn12_408"

><td id="408"><a href="#408">408</a></td></tr
><tr id="gr_svn12_409"

><td id="409"><a href="#409">409</a></td></tr
><tr id="gr_svn12_410"

><td id="410"><a href="#410">410</a></td></tr
><tr id="gr_svn12_411"

><td id="411"><a href="#411">411</a></td></tr
><tr id="gr_svn12_412"

><td id="412"><a href="#412">412</a></td></tr
><tr id="gr_svn12_413"

><td id="413"><a href="#413">413</a></td></tr
><tr id="gr_svn12_414"

><td id="414"><a href="#414">414</a></td></tr
><tr id="gr_svn12_415"

><td id="415"><a href="#415">415</a></td></tr
><tr id="gr_svn12_416"

><td id="416"><a href="#416">416</a></td></tr
><tr id="gr_svn12_417"

><td id="417"><a href="#417">417</a></td></tr
><tr id="gr_svn12_418"

><td id="418"><a href="#418">418</a></td></tr
><tr id="gr_svn12_419"

><td id="419"><a href="#419">419</a></td></tr
><tr id="gr_svn12_420"

><td id="420"><a href="#420">420</a></td></tr
><tr id="gr_svn12_421"

><td id="421"><a href="#421">421</a></td></tr
><tr id="gr_svn12_422"

><td id="422"><a href="#422">422</a></td></tr
><tr id="gr_svn12_423"

><td id="423"><a href="#423">423</a></td></tr
><tr id="gr_svn12_424"

><td id="424"><a href="#424">424</a></td></tr
><tr id="gr_svn12_425"

><td id="425"><a href="#425">425</a></td></tr
><tr id="gr_svn12_426"

><td id="426"><a href="#426">426</a></td></tr
><tr id="gr_svn12_427"

><td id="427"><a href="#427">427</a></td></tr
><tr id="gr_svn12_428"

><td id="428"><a href="#428">428</a></td></tr
><tr id="gr_svn12_429"

><td id="429"><a href="#429">429</a></td></tr
><tr id="gr_svn12_430"

><td id="430"><a href="#430">430</a></td></tr
><tr id="gr_svn12_431"

><td id="431"><a href="#431">431</a></td></tr
><tr id="gr_svn12_432"

><td id="432"><a href="#432">432</a></td></tr
><tr id="gr_svn12_433"

><td id="433"><a href="#433">433</a></td></tr
><tr id="gr_svn12_434"

><td id="434"><a href="#434">434</a></td></tr
><tr id="gr_svn12_435"

><td id="435"><a href="#435">435</a></td></tr
><tr id="gr_svn12_436"

><td id="436"><a href="#436">436</a></td></tr
><tr id="gr_svn12_437"

><td id="437"><a href="#437">437</a></td></tr
><tr id="gr_svn12_438"

><td id="438"><a href="#438">438</a></td></tr
><tr id="gr_svn12_439"

><td id="439"><a href="#439">439</a></td></tr
><tr id="gr_svn12_440"

><td id="440"><a href="#440">440</a></td></tr
><tr id="gr_svn12_441"

><td id="441"><a href="#441">441</a></td></tr
><tr id="gr_svn12_442"

><td id="442"><a href="#442">442</a></td></tr
><tr id="gr_svn12_443"

><td id="443"><a href="#443">443</a></td></tr
><tr id="gr_svn12_444"

><td id="444"><a href="#444">444</a></td></tr
><tr id="gr_svn12_445"

><td id="445"><a href="#445">445</a></td></tr
><tr id="gr_svn12_446"

><td id="446"><a href="#446">446</a></td></tr
><tr id="gr_svn12_447"

><td id="447"><a href="#447">447</a></td></tr
><tr id="gr_svn12_448"

><td id="448"><a href="#448">448</a></td></tr
><tr id="gr_svn12_449"

><td id="449"><a href="#449">449</a></td></tr
><tr id="gr_svn12_450"

><td id="450"><a href="#450">450</a></td></tr
><tr id="gr_svn12_451"

><td id="451"><a href="#451">451</a></td></tr
><tr id="gr_svn12_452"

><td id="452"><a href="#452">452</a></td></tr
><tr id="gr_svn12_453"

><td id="453"><a href="#453">453</a></td></tr
><tr id="gr_svn12_454"

><td id="454"><a href="#454">454</a></td></tr
><tr id="gr_svn12_455"

><td id="455"><a href="#455">455</a></td></tr
><tr id="gr_svn12_456"

><td id="456"><a href="#456">456</a></td></tr
><tr id="gr_svn12_457"

><td id="457"><a href="#457">457</a></td></tr
><tr id="gr_svn12_458"

><td id="458"><a href="#458">458</a></td></tr
><tr id="gr_svn12_459"

><td id="459"><a href="#459">459</a></td></tr
><tr id="gr_svn12_460"

><td id="460"><a href="#460">460</a></td></tr
><tr id="gr_svn12_461"

><td id="461"><a href="#461">461</a></td></tr
><tr id="gr_svn12_462"

><td id="462"><a href="#462">462</a></td></tr
><tr id="gr_svn12_463"

><td id="463"><a href="#463">463</a></td></tr
><tr id="gr_svn12_464"

><td id="464"><a href="#464">464</a></td></tr
><tr id="gr_svn12_465"

><td id="465"><a href="#465">465</a></td></tr
><tr id="gr_svn12_466"

><td id="466"><a href="#466">466</a></td></tr
><tr id="gr_svn12_467"

><td id="467"><a href="#467">467</a></td></tr
><tr id="gr_svn12_468"

><td id="468"><a href="#468">468</a></td></tr
><tr id="gr_svn12_469"

><td id="469"><a href="#469">469</a></td></tr
><tr id="gr_svn12_470"

><td id="470"><a href="#470">470</a></td></tr
><tr id="gr_svn12_471"

><td id="471"><a href="#471">471</a></td></tr
><tr id="gr_svn12_472"

><td id="472"><a href="#472">472</a></td></tr
><tr id="gr_svn12_473"

><td id="473"><a href="#473">473</a></td></tr
><tr id="gr_svn12_474"

><td id="474"><a href="#474">474</a></td></tr
><tr id="gr_svn12_475"

><td id="475"><a href="#475">475</a></td></tr
><tr id="gr_svn12_476"

><td id="476"><a href="#476">476</a></td></tr
><tr id="gr_svn12_477"

><td id="477"><a href="#477">477</a></td></tr
><tr id="gr_svn12_478"

><td id="478"><a href="#478">478</a></td></tr
><tr id="gr_svn12_479"

><td id="479"><a href="#479">479</a></td></tr
><tr id="gr_svn12_480"

><td id="480"><a href="#480">480</a></td></tr
><tr id="gr_svn12_481"

><td id="481"><a href="#481">481</a></td></tr
><tr id="gr_svn12_482"

><td id="482"><a href="#482">482</a></td></tr
><tr id="gr_svn12_483"

><td id="483"><a href="#483">483</a></td></tr
><tr id="gr_svn12_484"

><td id="484"><a href="#484">484</a></td></tr
><tr id="gr_svn12_485"

><td id="485"><a href="#485">485</a></td></tr
><tr id="gr_svn12_486"

><td id="486"><a href="#486">486</a></td></tr
><tr id="gr_svn12_487"

><td id="487"><a href="#487">487</a></td></tr
><tr id="gr_svn12_488"

><td id="488"><a href="#488">488</a></td></tr
><tr id="gr_svn12_489"

><td id="489"><a href="#489">489</a></td></tr
><tr id="gr_svn12_490"

><td id="490"><a href="#490">490</a></td></tr
><tr id="gr_svn12_491"

><td id="491"><a href="#491">491</a></td></tr
><tr id="gr_svn12_492"

><td id="492"><a href="#492">492</a></td></tr
><tr id="gr_svn12_493"

><td id="493"><a href="#493">493</a></td></tr
><tr id="gr_svn12_494"

><td id="494"><a href="#494">494</a></td></tr
><tr id="gr_svn12_495"

><td id="495"><a href="#495">495</a></td></tr
><tr id="gr_svn12_496"

><td id="496"><a href="#496">496</a></td></tr
></table></pre>
<pre><table width="100%"><tr class="nocursor"><td></td></tr></table></pre>
</td>
<td id="lines">
<pre><table width="100%"><tr class="cursor_stop cursor_hidden"><td></td></tr></table></pre>
<pre class="prettyprint lang-js"><table id="src_table_0"><tr
id=sl_svn12_1

><td class="source">/*<br></td></tr
><tr
id=sl_svn12_2

><td class="source">Copyright 2010 Google Inc.<br></td></tr
><tr
id=sl_svn12_3

><td class="source"><br></td></tr
><tr
id=sl_svn12_4

><td class="source">Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);<br></td></tr
><tr
id=sl_svn12_5

><td class="source">you may not use this file except in compliance with the License.<br></td></tr
><tr
id=sl_svn12_6

><td class="source">You may obtain a copy of the License at<br></td></tr
><tr
id=sl_svn12_7

><td class="source"><br></td></tr
><tr
id=sl_svn12_8

><td class="source">     http://www.apache.org/licenses/LICENSE-2.0<br></td></tr
><tr
id=sl_svn12_9

><td class="source"><br></td></tr
><tr
id=sl_svn12_10

><td class="source">Unless required by applicable law or agreed to in writing, software<br></td></tr
><tr
id=sl_svn12_11

><td class="source">distributed under the License is distributed on an &quot;AS IS&quot; BASIS,<br></td></tr
><tr
id=sl_svn12_12

><td class="source">WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<br></td></tr
><tr
id=sl_svn12_13

><td class="source">See the License for the specific language governing permissions and<br></td></tr
><tr
id=sl_svn12_14

><td class="source">limitations under the License.<br></td></tr
><tr
id=sl_svn12_15

><td class="source">*/<br></td></tr
><tr
id=sl_svn12_16

><td class="source"><br></td></tr
><tr
id=sl_svn12_17

><td class="source">/*******************************************************************************<br></td></tr
><tr
id=sl_svn12_18

><td class="source">ControlJS - a JavaScript module for loading scripts faster.<br></td></tr
><tr
id=sl_svn12_19

><td class="source">  - home page: http://stevesouders.com/controljs/<br></td></tr
><tr
id=sl_svn12_20

><td class="source">  - code project: http://code.google.com/p/controljs/<br></td></tr
><tr
id=sl_svn12_21

><td class="source">  - discussion list: http://groups.google.com/group/controljs<br></td></tr
><tr
id=sl_svn12_22

><td class="source">*******************************************************************************/<br></td></tr
><tr
id=sl_svn12_23

><td class="source"><br></td></tr
><tr
id=sl_svn12_24

><td class="source">var CJS = CJS || {};<br></td></tr
><tr
id=sl_svn12_25

><td class="source"><br></td></tr
><tr
id=sl_svn12_26

><td class="source">CJS.start = function() {<br></td></tr
><tr
id=sl_svn12_27

><td class="source">	CJS.init();<br></td></tr
><tr
id=sl_svn12_28

><td class="source"><br></td></tr
><tr
id=sl_svn12_29

><td class="source">	// Find all the script DOM elements that have been modified for ControlJS.<br></td></tr
><tr
id=sl_svn12_30

><td class="source">	CJS.findScripts();<br></td></tr
><tr
id=sl_svn12_31

><td class="source"><br></td></tr
><tr
id=sl_svn12_32

><td class="source">	// Start scripts downloading in the background ASAP.<br></td></tr
><tr
id=sl_svn12_33

><td class="source">	CJS.downloadScripts();<br></td></tr
><tr
id=sl_svn12_34

><td class="source"><br></td></tr
><tr
id=sl_svn12_35

><td class="source">	// Process scripts now or later depending on the defer setting.<br></td></tr
><tr
id=sl_svn12_36

><td class="source">	if ( CJS.defer ) {<br></td></tr
><tr
id=sl_svn12_37

><td class="source">		// It&#39;s possible that window.onload already fired, in which case we<br></td></tr
><tr
id=sl_svn12_38

><td class="source">		// need to kickoff processScripts immediately.<br></td></tr
><tr
id=sl_svn12_39

><td class="source">		if ( &quot;undefined&quot; != typeof(document.readyState) &amp;&amp; &quot;complete&quot; === document.readyState ) {<br></td></tr
><tr
id=sl_svn12_40

><td class="source">			CJS.processScripts();<br></td></tr
><tr
id=sl_svn12_41

><td class="source">		}<br></td></tr
><tr
id=sl_svn12_42

><td class="source">		else {<br></td></tr
><tr
id=sl_svn12_43

><td class="source">			CJS.addHandler(window, &#39;load&#39;, CJS.processScripts);<br></td></tr
><tr
id=sl_svn12_44

><td class="source">		}<br></td></tr
><tr
id=sl_svn12_45

><td class="source">	}<br></td></tr
><tr
id=sl_svn12_46

><td class="source">	else {<br></td></tr
><tr
id=sl_svn12_47

><td class="source">		// TODO - We need to add a mechanism to do multiple passes before<br></td></tr
><tr
id=sl_svn12_48

><td class="source">		// we support calling processScripts before the DOM is complete.<br></td></tr
><tr
id=sl_svn12_49

><td class="source">		alert(&quot;Immediate processing is not currently supported.&quot;);<br></td></tr
><tr
id=sl_svn12_50

><td class="source">		CJS.processScripts();<br></td></tr
><tr
id=sl_svn12_51

><td class="source">	}<br></td></tr
><tr
id=sl_svn12_52

><td class="source">};<br></td></tr
><tr
id=sl_svn12_53

><td class="source"><br></td></tr
><tr
id=sl_svn12_54

><td class="source"><br></td></tr
><tr
id=sl_svn12_55

><td class="source">// Find all scripts with a &quot;text/cjs&quot; type.<br></td></tr
><tr
id=sl_svn12_56

><td class="source">CJS.findScripts = function() {<br></td></tr
><tr
id=sl_svn12_57

><td class="source">	var aScripts = document.getElementsByTagName(&#39;script&#39;);<br></td></tr
><tr
id=sl_svn12_58

><td class="source">	var len = aScripts.length;<br></td></tr
><tr
id=sl_svn12_59

><td class="source">	for ( var i = 0; i &lt; len; i++ ) {<br></td></tr
><tr
id=sl_svn12_60

><td class="source">		var script = aScripts[i];<br></td></tr
><tr
id=sl_svn12_61

><td class="source">		if ( &quot;text/cjs&quot; === CJS.getAttribute(script, &quot;type&quot;) &amp;&amp; &quot;undefined&quot; === typeof(script.cjsfound) ) {<br></td></tr
><tr
id=sl_svn12_62

><td class="source">			CJS.aScripts[CJS.aScripts.length] = script;<br></td></tr
><tr
id=sl_svn12_63

><td class="source">			script.cjsfound = true;  // mark the script as found so we can do a second pass later<br></td></tr
><tr
id=sl_svn12_64

><td class="source">		}<br></td></tr
><tr
id=sl_svn12_65

><td class="source">	}<br></td></tr
><tr
id=sl_svn12_66

><td class="source">	//CJS.dprint(&quot;found &quot; + CJS.aScripts.length + &quot; CJS scripts&quot;);<br></td></tr
><tr
id=sl_svn12_67

><td class="source">};<br></td></tr
><tr
id=sl_svn12_68

><td class="source"><br></td></tr
><tr
id=sl_svn12_69

><td class="source"><br></td></tr
><tr
id=sl_svn12_70

><td class="source">// <br></td></tr
><tr
id=sl_svn12_71

><td class="source">// DOWNLOAD PHASE<br></td></tr
><tr
id=sl_svn12_72

><td class="source">//<br></td></tr
><tr
id=sl_svn12_73

><td class="source"><br></td></tr
><tr
id=sl_svn12_74

><td class="source">// Find all scripts with a &quot;data-cjssrc&quot; attribute.<br></td></tr
><tr
id=sl_svn12_75

><td class="source">CJS.downloadScripts = function() {<br></td></tr
><tr
id=sl_svn12_76

><td class="source">	var len = CJS.aScripts.length;<br></td></tr
><tr
id=sl_svn12_77

><td class="source">	for ( var i = 0; i &lt; len; i++ ) {<br></td></tr
><tr
id=sl_svn12_78

><td class="source">		var script = CJS.aScripts[i];<br></td></tr
><tr
id=sl_svn12_79

><td class="source">		var src = CJS.getAttribute(script, &quot;data-cjssrc&quot;) || CJS.getAttribute(script, &quot;cjssrc&quot;); // backward compatible to earlier &quot;cjssrc&quot; attribute<br></td></tr
><tr
id=sl_svn12_80

><td class="source">		if ( src ) {<br></td></tr
><tr
id=sl_svn12_81

><td class="source">			CJS.downloadScript(src);<br></td></tr
><tr
id=sl_svn12_82

><td class="source">		}<br></td></tr
><tr
id=sl_svn12_83

><td class="source">	}<br></td></tr
><tr
id=sl_svn12_84

><td class="source">};<br></td></tr
><tr
id=sl_svn12_85

><td class="source"><br></td></tr
><tr
id=sl_svn12_86

><td class="source"><br></td></tr
><tr
id=sl_svn12_87

><td class="source">// Download a script in such a way that it&#39;s not executed immediately.<br></td></tr
><tr
id=sl_svn12_88

><td class="source">CJS.downloadScript = function(url) {<br></td></tr
><tr
id=sl_svn12_89

><td class="source">	CJS.dprint(&quot;downloading &quot; + url);<br></td></tr
><tr
id=sl_svn12_90

><td class="source"><br></td></tr
><tr
id=sl_svn12_91

><td class="source">	if ( CJS.bIE || CJS.bOpera ) {<br></td></tr
><tr
id=sl_svn12_92

><td class="source">		CJS.downloadScriptImage(url);<br></td></tr
><tr
id=sl_svn12_93

><td class="source">	}<br></td></tr
><tr
id=sl_svn12_94

><td class="source">	else {<br></td></tr
><tr
id=sl_svn12_95

><td class="source">		CJS.downloadScriptObject(url);<br></td></tr
><tr
id=sl_svn12_96

><td class="source">	}<br></td></tr
><tr
id=sl_svn12_97

><td class="source">};<br></td></tr
><tr
id=sl_svn12_98

><td class="source"><br></td></tr
><tr
id=sl_svn12_99

><td class="source"><br></td></tr
><tr
id=sl_svn12_100

><td class="source">// Download a script as an image.<br></td></tr
><tr
id=sl_svn12_101

><td class="source">// This puts it in the browser&#39;s cache, but doesn&#39;t execute it.<br></td></tr
><tr
id=sl_svn12_102

><td class="source">CJS.downloadScriptImage = function(url) {<br></td></tr
><tr
id=sl_svn12_103

><td class="source">	var img = new Image();<br></td></tr
><tr
id=sl_svn12_104

><td class="source">	img.onload = function() { CJS.onloadCallback(url); };<br></td></tr
><tr
id=sl_svn12_105

><td class="source">	img.onerror = function() { CJS.onloadCallback(url); }; // Chrome does onerror (not onload).<br></td></tr
><tr
id=sl_svn12_106

><td class="source">	img.src = url;<br></td></tr
><tr
id=sl_svn12_107

><td class="source">};<br></td></tr
><tr
id=sl_svn12_108

><td class="source"><br></td></tr
><tr
id=sl_svn12_109

><td class="source"><br></td></tr
><tr
id=sl_svn12_110

><td class="source">// Download a script as an object.<br></td></tr
><tr
id=sl_svn12_111

><td class="source">// This puts it in the browser&#39;s cache, but doesn&#39;t execute it.<br></td></tr
><tr
id=sl_svn12_112

><td class="source">// Based on http://www.phpied.com/preload-cssjavascript-without-execution/<br></td></tr
><tr
id=sl_svn12_113

><td class="source">CJS.downloadScriptObject = function(url) {<br></td></tr
><tr
id=sl_svn12_114

><td class="source">	if ( &quot;undefined&quot; === typeof(document.body) || ! document.body ) {<br></td></tr
><tr
id=sl_svn12_115

><td class="source">		// we need body for appending objects<br></td></tr
><tr
id=sl_svn12_116

><td class="source">		setTimeout(&quot;CJS.downloadScriptObject(&#39;&quot; + url + &quot;&#39;)&quot;, 50);<br></td></tr
><tr
id=sl_svn12_117

><td class="source">		return;<br></td></tr
><tr
id=sl_svn12_118

><td class="source">	}<br></td></tr
><tr
id=sl_svn12_119

><td class="source"><br></td></tr
><tr
id=sl_svn12_120

><td class="source">	var obj = document.createElement(&#39;object&#39;);<br></td></tr
><tr
id=sl_svn12_121

><td class="source">	obj.data = url;<br></td></tr
><tr
id=sl_svn12_122

><td class="source">	obj.width  = 0;<br></td></tr
><tr
id=sl_svn12_123

><td class="source">	obj.height = 0;<br></td></tr
><tr
id=sl_svn12_124

><td class="source">	obj.onload = function() { CJS.onloadCallback(url); };<br></td></tr
><tr
id=sl_svn12_125

><td class="source">	obj.onerror = function() { CJS.onloadCallback(url); };<br></td></tr
><tr
id=sl_svn12_126

><td class="source">	//CJS.dprint(&quot;downloadScriptObject: appending &quot; + url);<br></td></tr
><tr
id=sl_svn12_127

><td class="source">	document.body.appendChild(obj);<br></td></tr
><tr
id=sl_svn12_128

><td class="source">};<br></td></tr
><tr
id=sl_svn12_129

><td class="source"><br></td></tr
><tr
id=sl_svn12_130

><td class="source"><br></td></tr
><tr
id=sl_svn12_131

><td class="source">CJS.onloadCallback = function(url) {<br></td></tr
><tr
id=sl_svn12_132

><td class="source">	//CJS.dprint(&quot;onloadCallback: &quot; + url);<br></td></tr
><tr
id=sl_svn12_133

><td class="source">	CJS.hLoaded[url] = true;<br></td></tr
><tr
id=sl_svn12_134

><td class="source">};<br></td></tr
><tr
id=sl_svn12_135

><td class="source"><br></td></tr
><tr
id=sl_svn12_136

><td class="source"><br></td></tr
><tr
id=sl_svn12_137

><td class="source">CJS.execCallback = function(url) {<br></td></tr
><tr
id=sl_svn12_138

><td class="source">	CJS.dprint(&quot;execCallback: &quot; + url);<br></td></tr
><tr
id=sl_svn12_139

><td class="source"><br></td></tr
><tr
id=sl_svn12_140

><td class="source">	if ( 0 === CJS.aExecs.length ) {<br></td></tr
><tr
id=sl_svn12_141

><td class="source">		CJS.dprint(&quot;ERROR: We finished executing a script but the exec queue is empty: &quot; + url);<br></td></tr
><tr
id=sl_svn12_142

><td class="source">		return;<br></td></tr
><tr
id=sl_svn12_143

><td class="source">	}<br></td></tr
><tr
id=sl_svn12_144

><td class="source"><br></td></tr
><tr
id=sl_svn12_145

><td class="source">	if ( url == CJS.aExecs[0][0] ) {<br></td></tr
><tr
id=sl_svn12_146

><td class="source">		CJS.aExecs.splice(0, 1);  // remove leading URL<br></td></tr
><tr
id=sl_svn12_147

><td class="source">	}<br></td></tr
><tr
id=sl_svn12_148

><td class="source">	else {<br></td></tr
><tr
id=sl_svn12_149

><td class="source">		CJS.dprint(&quot;ERROR: We finished executing a script that wasn&#39;t on the queue: &quot; + url);<br></td></tr
><tr
id=sl_svn12_150

><td class="source">	}<br></td></tr
><tr
id=sl_svn12_151

><td class="source"><br></td></tr
><tr
id=sl_svn12_152

><td class="source">	if ( CJS.aExecs.length ) {<br></td></tr
><tr
id=sl_svn12_153

><td class="source">		// execute the next script on the queue<br></td></tr
><tr
id=sl_svn12_154

><td class="source">		CJS.execScript(CJS.aExecs[0][0], CJS.aExecs[0][1]);<br></td></tr
><tr
id=sl_svn12_155

><td class="source">	}<br></td></tr
><tr
id=sl_svn12_156

><td class="source">};<br></td></tr
><tr
id=sl_svn12_157

><td class="source"><br></td></tr
><tr
id=sl_svn12_158

><td class="source"><br></td></tr
><tr
id=sl_svn12_159

><td class="source"><br></td></tr
><tr
id=sl_svn12_160

><td class="source"><br></td></tr
><tr
id=sl_svn12_161

><td class="source"><br></td></tr
><tr
id=sl_svn12_162

><td class="source">// <br></td></tr
><tr
id=sl_svn12_163

><td class="source">// EXECUTION PHASE<br></td></tr
><tr
id=sl_svn12_164

><td class="source">//<br></td></tr
><tr
id=sl_svn12_165

><td class="source"><br></td></tr
><tr
id=sl_svn12_166

><td class="source">CJS.processScripts = function() {<br></td></tr
><tr
id=sl_svn12_167

><td class="source">	CJS.processNextScript();<br></td></tr
><tr
id=sl_svn12_168

><td class="source">};<br></td></tr
><tr
id=sl_svn12_169

><td class="source"><br></td></tr
><tr
id=sl_svn12_170

><td class="source"><br></td></tr
><tr
id=sl_svn12_171

><td class="source">CJS.processNextScript = function() {<br></td></tr
><tr
id=sl_svn12_172

><td class="source">	//CJS.dprint(&quot;processNextScript: enter&quot;);<br></td></tr
><tr
id=sl_svn12_173

><td class="source">	if ( CJS.aScripts.length ) {<br></td></tr
><tr
id=sl_svn12_174

><td class="source">		var script = CJS.aScripts[0];<br></td></tr
><tr
id=sl_svn12_175

><td class="source">		CJS.curScript = script;  // for docwrite<br></td></tr
><tr
id=sl_svn12_176

><td class="source"><br></td></tr
><tr
id=sl_svn12_177

><td class="source">		var src = CJS.getAttribute(script, &quot;data-cjssrc&quot;) || CJS.getAttribute(script, &quot;cjssrc&quot;); // backward compatible to earlier &quot;cjssrc&quot; attribute<br></td></tr
><tr
id=sl_svn12_178

><td class="source">		var cjsexec = CJS.getAttribute(script, &quot;data-cjsexec&quot;) || CJS.getAttribute(script, &quot;cjsexec&quot;); // backward compatible to earlier &quot;cjsexec&quot; attribute<br></td></tr
><tr
id=sl_svn12_179

><td class="source">		if ( src ) {<br></td></tr
><tr
id=sl_svn12_180

><td class="source">			// External Script<br></td></tr
><tr
id=sl_svn12_181

><td class="source">			if ( &quot;false&quot; === cjsexec ) {<br></td></tr
><tr
id=sl_svn12_182

><td class="source">				CJS.aScripts.splice(0, 1);   // remove leading script<br></td></tr
><tr
id=sl_svn12_183

><td class="source">				setTimeout(CJS.processNextScript, 0);<br></td></tr
><tr
id=sl_svn12_184

><td class="source">			}<br></td></tr
><tr
id=sl_svn12_185

><td class="source">			else if ( CJS.hLoaded[src] ) {<br></td></tr
><tr
id=sl_svn12_186

><td class="source">				// Done downloading.<br></td></tr
><tr
id=sl_svn12_187

><td class="source">				CJS.processExternalScript(script, CJS.processNextScript);<br></td></tr
><tr
id=sl_svn12_188

><td class="source">				CJS.aScripts.splice(0, 1);   // remove leading script<br></td></tr
><tr
id=sl_svn12_189

><td class="source">				// Race condition! Need to call processNextScript from the onload handler <br></td></tr
><tr
id=sl_svn12_190

><td class="source">				// of the script added down inside processExternalScript. (Notice the <br></td></tr
><tr
id=sl_svn12_191

><td class="source">				// callback added above when calling processExternalScript.)<br></td></tr
><tr
id=sl_svn12_192

><td class="source">				//setTimeout(CJS.processNextScript, 0);<br></td></tr
><tr
id=sl_svn12_193

><td class="source">			}<br></td></tr
><tr
id=sl_svn12_194

><td class="source">			else {<br></td></tr
><tr
id=sl_svn12_195

><td class="source">				// Still downloading.<br></td></tr
><tr
id=sl_svn12_196

><td class="source">				CJS.dprint(&quot;processNextScript: waiting for script &quot; + src);<br></td></tr
><tr
id=sl_svn12_197

><td class="source">				if ( &quot;undefined&quot; === typeof(script.startwait) ) {<br></td></tr
><tr
id=sl_svn12_198

><td class="source">					script.startwait = Number(new Date());  // start time<br></td></tr
><tr
id=sl_svn12_199

><td class="source">				}<br></td></tr
><tr
id=sl_svn12_200

><td class="source">				var delta = Number(new Date()) - script.startwait;<br></td></tr
><tr
id=sl_svn12_201

><td class="source">				if ( delta &lt; CJS.maxWait ) {<br></td></tr
><tr
id=sl_svn12_202

><td class="source">					// try again<br></td></tr
><tr
id=sl_svn12_203

><td class="source">					setTimeout(CJS.processNextScript, CJS.waitival);<br></td></tr
><tr
id=sl_svn12_204

><td class="source">				}<br></td></tr
><tr
id=sl_svn12_205

><td class="source">				else {<br></td></tr
><tr
id=sl_svn12_206

><td class="source">					// bail<br></td></tr
><tr
id=sl_svn12_207

><td class="source">					alert(&quot;There was an error loading script: &quot; + src);<br></td></tr
><tr
id=sl_svn12_208

><td class="source">				}<br></td></tr
><tr
id=sl_svn12_209

><td class="source">			}<br></td></tr
><tr
id=sl_svn12_210

><td class="source">		}<br></td></tr
><tr
id=sl_svn12_211

><td class="source">		else {<br></td></tr
><tr
id=sl_svn12_212

><td class="source">			// Inline Script<br></td></tr
><tr
id=sl_svn12_213

><td class="source">			CJS.processInlineScript(script);<br></td></tr
><tr
id=sl_svn12_214

><td class="source">			CJS.aScripts.splice(0, 1);   // remove leading script<br></td></tr
><tr
id=sl_svn12_215

><td class="source">			setTimeout(CJS.processNextScript, 0);<br></td></tr
><tr
id=sl_svn12_216

><td class="source">		}<br></td></tr
><tr
id=sl_svn12_217

><td class="source"><br></td></tr
><tr
id=sl_svn12_218

><td class="source">		return;<br></td></tr
><tr
id=sl_svn12_219

><td class="source">	}<br></td></tr
><tr
id=sl_svn12_220

><td class="source"><br></td></tr
><tr
id=sl_svn12_221

><td class="source">	// Do a 2nd pass looking for CJS scripts. <br></td></tr
><tr
id=sl_svn12_222

><td class="source">	// Because control.js loads async, it&#39;s possible for findScripts to be<br></td></tr
><tr
id=sl_svn12_223

><td class="source">	// be called before all SCRIPT tags have been created.<br></td></tr
><tr
id=sl_svn12_224

><td class="source">	CJS.findScripts();<br></td></tr
><tr
id=sl_svn12_225

><td class="source">	if ( CJS.aScripts.length ) {<br></td></tr
><tr
id=sl_svn12_226

><td class="source">		CJS.downloadScripts();<br></td></tr
><tr
id=sl_svn12_227

><td class="source">		setTimeout(CJS.processNextScript, 0);<br></td></tr
><tr
id=sl_svn12_228

><td class="source">		return;<br></td></tr
><tr
id=sl_svn12_229

><td class="source">	}<br></td></tr
><tr
id=sl_svn12_230

><td class="source"><br></td></tr
><tr
id=sl_svn12_231

><td class="source">	// restore the original document.write function definition<br></td></tr
><tr
id=sl_svn12_232

><td class="source">	document.write = CJS.docwriteOrig;<br></td></tr
><tr
id=sl_svn12_233

><td class="source"><br></td></tr
><tr
id=sl_svn12_234

><td class="source">	CJS.dprint(&quot;DONE processing scripts&quot;);<br></td></tr
><tr
id=sl_svn12_235

><td class="source"><br></td></tr
><tr
id=sl_svn12_236

><td class="source">	/*<br></td></tr
><tr
id=sl_svn12_237

><td class="source">	TODO - We can try something like this to re-fire the window load event.<br></td></tr
><tr
id=sl_svn12_238

><td class="source">	var eventObj = document.createEvent(&quot;HTMLEvents&quot;);<br></td></tr
><tr
id=sl_svn12_239

><td class="source">	eventObj.initEvent(&quot;load&quot;, true, true);<br></td></tr
><tr
id=sl_svn12_240

><td class="source">	window.dispatchEvent(eventObj);<br></td></tr
><tr
id=sl_svn12_241

><td class="source">    */<br></td></tr
><tr
id=sl_svn12_242

><td class="source">};<br></td></tr
><tr
id=sl_svn12_243

><td class="source"><br></td></tr
><tr
id=sl_svn12_244

><td class="source"><br></td></tr
><tr
id=sl_svn12_245

><td class="source">// Eval the code in an inlined script.<br></td></tr
><tr
id=sl_svn12_246

><td class="source">CJS.processInlineScript = function(script) {<br></td></tr
><tr
id=sl_svn12_247

><td class="source">	//CJS.dprint(&quot;processInlineScript: enter&quot;);<br></td></tr
><tr
id=sl_svn12_248

><td class="source">	CJS.curScript = script;  // for docwrite<br></td></tr
><tr
id=sl_svn12_249

><td class="source"><br></td></tr
><tr
id=sl_svn12_250

><td class="source">	var code = script.text;<br></td></tr
><tr
id=sl_svn12_251

><td class="source">	CJS.dprint(&quot;processInlineScript: processing script code: &quot; + code.substring(0, 64));<br></td></tr
><tr
id=sl_svn12_252

><td class="source">	CJS.eval(code);<br></td></tr
><tr
id=sl_svn12_253

><td class="source">};<br></td></tr
><tr
id=sl_svn12_254

><td class="source"><br></td></tr
><tr
id=sl_svn12_255

><td class="source"><br></td></tr
><tr
id=sl_svn12_256

><td class="source">// If downloaded then add the external script as a real script DOM element.<br></td></tr
><tr
id=sl_svn12_257

><td class="source">CJS.processExternalScript = function(script, callback) {<br></td></tr
><tr
id=sl_svn12_258

><td class="source">	//CJS.dprint(&quot;processExternalScript: enter&quot;);<br></td></tr
><tr
id=sl_svn12_259

><td class="source"><br></td></tr
><tr
id=sl_svn12_260

><td class="source">	var src = CJS.getAttribute(script, &quot;data-cjssrc&quot;) || CJS.getAttribute(script, &quot;cjssrc&quot;); // backward compatible to earlier &quot;cjssrc&quot; attribute<br></td></tr
><tr
id=sl_svn12_261

><td class="source">	CJS.dprint(&quot;processExternalScript: processing script &quot; + src);<br></td></tr
><tr
id=sl_svn12_262

><td class="source">	CJS.execScript(src, callback);<br></td></tr
><tr
id=sl_svn12_263

><td class="source">};<br></td></tr
><tr
id=sl_svn12_264

><td class="source"><br></td></tr
><tr
id=sl_svn12_265

><td class="source"><br></td></tr
><tr
id=sl_svn12_266

><td class="source">// Insert a script DOM element.<br></td></tr
><tr
id=sl_svn12_267

><td class="source">// Presumably the src has already been downloaded and is in the cache.<br></td></tr
><tr
id=sl_svn12_268

><td class="source">CJS.execScript = function(src, onload) {<br></td></tr
><tr
id=sl_svn12_269

><td class="source">	CJS.dprint(&quot;execScript: &quot; + src);<br></td></tr
><tr
id=sl_svn12_270

><td class="source"><br></td></tr
><tr
id=sl_svn12_271

><td class="source">	if ( 0 === CJS.aExecs.length ) {<br></td></tr
><tr
id=sl_svn12_272

><td class="source">		// Add this to the queue and continue on to execute it.<br></td></tr
><tr
id=sl_svn12_273

><td class="source">		CJS.aExecs[CJS.aExecs.length] = [src, onload];<br></td></tr
><tr
id=sl_svn12_274

><td class="source">	}<br></td></tr
><tr
id=sl_svn12_275

><td class="source">	else if ( src != CJS.aExecs[0][0] ) {<br></td></tr
><tr
id=sl_svn12_276

><td class="source">		// If there&#39;s an execution queue and this SRC isn&#39;t first, try later.<br></td></tr
><tr
id=sl_svn12_277

><td class="source">		CJS.dprint(&quot;execScript: queueing for later: &quot; + src);<br></td></tr
><tr
id=sl_svn12_278

><td class="source">		CJS.aExecs[CJS.aExecs.length] = [src, onload];<br></td></tr
><tr
id=sl_svn12_279

><td class="source">		return;<br></td></tr
><tr
id=sl_svn12_280

><td class="source">	}<br></td></tr
><tr
id=sl_svn12_281

><td class="source"><br></td></tr
><tr
id=sl_svn12_282

><td class="source">	// convert the onload parameter from function or string into a function<br></td></tr
><tr
id=sl_svn12_283

><td class="source">	var fonload = ( function(ponload) {<br></td></tr
><tr
id=sl_svn12_284

><td class="source">		switch ( typeof(ponload) ) { <br></td></tr
><tr
id=sl_svn12_285

><td class="source">			case &quot;string&quot;: <br></td></tr
><tr
id=sl_svn12_286

><td class="source">			  ponload = new Function(ponload);<br></td></tr
><tr
id=sl_svn12_287

><td class="source">			  break;	 <br></td></tr
><tr
id=sl_svn12_288

><td class="source">			case &quot;function&quot;: <br></td></tr
><tr
id=sl_svn12_289

><td class="source">			  // ponload is already a function<br></td></tr
><tr
id=sl_svn12_290

><td class="source">			  break; <br></td></tr
><tr
id=sl_svn12_291

><td class="source">			default: <br></td></tr
><tr
id=sl_svn12_292

><td class="source">			  ponload = new Function();<br></td></tr
><tr
id=sl_svn12_293

><td class="source">		}<br></td></tr
><tr
id=sl_svn12_294

><td class="source">		return ponload;<br></td></tr
><tr
id=sl_svn12_295

><td class="source">		<br></td></tr
><tr
id=sl_svn12_296

><td class="source">	})(onload);<br></td></tr
><tr
id=sl_svn12_297

><td class="source"><br></td></tr
><tr
id=sl_svn12_298

><td class="source">	// single function that works with onload and onreadystatechange<br></td></tr
><tr
id=sl_svn12_299

><td class="source">	var func = function() {<br></td></tr
><tr
id=sl_svn12_300

><td class="source">		if ( this.readyState &amp;&amp; this.readyState != &quot;complete&quot; &amp;&amp; this.readyState != &quot;loaded&quot; ) {<br></td></tr
><tr
id=sl_svn12_301

><td class="source">			return; <br></td></tr
><tr
id=sl_svn12_302

><td class="source">		}<br></td></tr
><tr
id=sl_svn12_303

><td class="source">		CJS.execCallback(src); <br></td></tr
><tr
id=sl_svn12_304

><td class="source">		this.onload = this.onreadystatechange = null; // ensure callback is only called once<br></td></tr
><tr
id=sl_svn12_305

><td class="source">		fonload(); <br></td></tr
><tr
id=sl_svn12_306

><td class="source">	};<br></td></tr
><tr
id=sl_svn12_307

><td class="source"><br></td></tr
><tr
id=sl_svn12_308

><td class="source">	// Add a SCRIPT element pointing to the (already cached) src so the JS gets executed.<br></td></tr
><tr
id=sl_svn12_309

><td class="source">	var se = document.createElement(&#39;script&#39;);<br></td></tr
><tr
id=sl_svn12_310

><td class="source">	se.onload = se.onreadystatechange = func;  // set this BEFORE setting .src<br></td></tr
><tr
id=sl_svn12_311

><td class="source">	se.src = src;<br></td></tr
><tr
id=sl_svn12_312

><td class="source">	var s1 = document.getElementsByTagName(&#39;script&#39;)[0];<br></td></tr
><tr
id=sl_svn12_313

><td class="source">	s1.parentNode.insertBefore(se, s1);<br></td></tr
><tr
id=sl_svn12_314

><td class="source">};<br></td></tr
><tr
id=sl_svn12_315

><td class="source"><br></td></tr
><tr
id=sl_svn12_316

><td class="source"><br></td></tr
><tr
id=sl_svn12_317

><td class="source">// Eval a string of JavaScript in the proper context.<br></td></tr
><tr
id=sl_svn12_318

><td class="source">CJS.eval = function(code) {<br></td></tr
><tr
id=sl_svn12_319

><td class="source">	//CJS.dprint(&quot;evaling: &quot; + code.substring(0, 64));<br></td></tr
><tr
id=sl_svn12_320

><td class="source"><br></td></tr
><tr
id=sl_svn12_321

><td class="source">	if (window.execScript) {<br></td></tr
><tr
id=sl_svn12_322

><td class="source">		window.execScript(code);<br></td></tr
><tr
id=sl_svn12_323

><td class="source">	}<br></td></tr
><tr
id=sl_svn12_324

><td class="source">	else {<br></td></tr
><tr
id=sl_svn12_325

><td class="source">		var fn = function() {<br></td></tr
><tr
id=sl_svn12_326

><td class="source">			window.eval.call(window, code);<br></td></tr
><tr
id=sl_svn12_327

><td class="source">		};<br></td></tr
><tr
id=sl_svn12_328

><td class="source">		fn();<br></td></tr
><tr
id=sl_svn12_329

><td class="source">	}<br></td></tr
><tr
id=sl_svn12_330

><td class="source"><br></td></tr
><tr
id=sl_svn12_331

><td class="source">	//CJS.dprint(&quot;eval exit&quot;);<br></td></tr
><tr
id=sl_svn12_332

><td class="source">};<br></td></tr
><tr
id=sl_svn12_333

><td class="source"><br></td></tr
><tr
id=sl_svn12_334

><td class="source"><br></td></tr
><tr
id=sl_svn12_335

><td class="source"><br></td></tr
><tr
id=sl_svn12_336

><td class="source"><br></td></tr
><tr
id=sl_svn12_337

><td class="source"><br></td></tr
><tr
id=sl_svn12_338

><td class="source"><br></td></tr
><tr
id=sl_svn12_339

><td class="source">// <br></td></tr
><tr
id=sl_svn12_340

><td class="source">// UTILITY FUNCTIONS<br></td></tr
><tr
id=sl_svn12_341

><td class="source">//<br></td></tr
><tr
id=sl_svn12_342

><td class="source"><br></td></tr
><tr
id=sl_svn12_343

><td class="source">CJS.init = function() {<br></td></tr
><tr
id=sl_svn12_344

><td class="source">	CJS.bInited = true;  // don&#39;t init twice<br></td></tr
><tr
id=sl_svn12_345

><td class="source"><br></td></tr
><tr
id=sl_svn12_346

><td class="source">	// If defer is true then scripts aren&#39;t loaded until the onload event.<br></td></tr
><tr
id=sl_svn12_347

><td class="source">	CJS.defer = ( &quot;undefined&quot; === typeof(CJS.defer) ? true : CJS.defer );<br></td></tr
><tr
id=sl_svn12_348

><td class="source"><br></td></tr
><tr
id=sl_svn12_349

><td class="source">	CJS.aScripts = [];  // array of CJS script DOM elements <br></td></tr
><tr
id=sl_svn12_350

><td class="source">	CJS.hLoaded = {};   // hash of script URLs that have loaded<br></td></tr
><tr
id=sl_svn12_351

><td class="source">	CJS.aExecs = [];    // array of script URLs to execute<br></td></tr
><tr
id=sl_svn12_352

><td class="source"><br></td></tr
><tr
id=sl_svn12_353

><td class="source">	CJS.bIE = ( -1 != navigator.userAgent.indexOf(&#39;MSIE&#39;) );<br></td></tr
><tr
id=sl_svn12_354

><td class="source">	CJS.bChrome = ( -1 != navigator.userAgent.indexOf(&#39;Chrome/&#39;) );<br></td></tr
><tr
id=sl_svn12_355

><td class="source">	CJS.bOpera = ( -1 != navigator.userAgent.indexOf(&#39;Opera&#39;) );<br></td></tr
><tr
id=sl_svn12_356

><td class="source"><br></td></tr
><tr
id=sl_svn12_357

><td class="source">	CJS.curScript = null; // for document.write<br></td></tr
><tr
id=sl_svn12_358

><td class="source"><br></td></tr
><tr
id=sl_svn12_359

><td class="source">	CJS.maxWait = 5000;  // maximum number of milliseconds to wait for a script to download<br></td></tr
><tr
id=sl_svn12_360

><td class="source">	CJS.waitival = 200;  // number of milliseconds to wait between retries of looking for external script download<br></td></tr
><tr
id=sl_svn12_361

><td class="source"><br></td></tr
><tr
id=sl_svn12_362

><td class="source">	CJS.docwriteOrig = document.write;  // keep a reference to the original function<br></td></tr
><tr
id=sl_svn12_363

><td class="source">	document.write = CJS.docwrite;      // override document.write<br></td></tr
><tr
id=sl_svn12_364

><td class="source">};<br></td></tr
><tr
id=sl_svn12_365

><td class="source"><br></td></tr
><tr
id=sl_svn12_366

><td class="source"><br></td></tr
><tr
id=sl_svn12_367

><td class="source">// Return the URL of the script that has been converted to CJS.<br></td></tr
><tr
id=sl_svn12_368

><td class="source">CJS.getAttribute = function(elem, name) {<br></td></tr
><tr
id=sl_svn12_369

><td class="source">	var attrs = elem.attributes;<br></td></tr
><tr
id=sl_svn12_370

><td class="source">	var len = attrs.length;<br></td></tr
><tr
id=sl_svn12_371

><td class="source">	for ( var i = 0; i &lt; len; i++ ) {<br></td></tr
><tr
id=sl_svn12_372

><td class="source">		var attr = attrs[i];<br></td></tr
><tr
id=sl_svn12_373

><td class="source">		if ( name === attr.nodeName ) {<br></td></tr
><tr
id=sl_svn12_374

><td class="source">			return attr.nodeValue;<br></td></tr
><tr
id=sl_svn12_375

><td class="source">		}<br></td></tr
><tr
id=sl_svn12_376

><td class="source">	}<br></td></tr
><tr
id=sl_svn12_377

><td class="source"><br></td></tr
><tr
id=sl_svn12_378

><td class="source">	return undefined;<br></td></tr
><tr
id=sl_svn12_379

><td class="source">};<br></td></tr
><tr
id=sl_svn12_380

><td class="source"><br></td></tr
><tr
id=sl_svn12_381

><td class="source"><br></td></tr
><tr
id=sl_svn12_382

><td class="source">// Wrapper for addEventListener and attachEvent.<br></td></tr
><tr
id=sl_svn12_383

><td class="source">CJS.addHandler = function(elem, sType, fn, capture) {<br></td></tr
><tr
id=sl_svn12_384

><td class="source">	capture = (capture) ? true : false;<br></td></tr
><tr
id=sl_svn12_385

><td class="source">	if (elem.addEventListener) {<br></td></tr
><tr
id=sl_svn12_386

><td class="source">		elem.addEventListener(sType, fn, capture);<br></td></tr
><tr
id=sl_svn12_387

><td class="source">	}<br></td></tr
><tr
id=sl_svn12_388

><td class="source">	else if (elem.attachEvent) {<br></td></tr
><tr
id=sl_svn12_389

><td class="source">		elem.attachEvent(&quot;on&quot; + sType, fn);<br></td></tr
><tr
id=sl_svn12_390

><td class="source">	}<br></td></tr
><tr
id=sl_svn12_391

><td class="source">	else {<br></td></tr
><tr
id=sl_svn12_392

><td class="source">		// Netscape 4<br></td></tr
><tr
id=sl_svn12_393

><td class="source">		if ( elem[&quot;on&quot; + sType] ) {<br></td></tr
><tr
id=sl_svn12_394

><td class="source">			// Do nothing - we don&#39;t want to overwrite an existing handler.<br></td></tr
><tr
id=sl_svn12_395

><td class="source">		}<br></td></tr
><tr
id=sl_svn12_396

><td class="source">		else {<br></td></tr
><tr
id=sl_svn12_397

><td class="source">			elem[&quot;on&quot; + sType] = fn;<br></td></tr
><tr
id=sl_svn12_398

><td class="source">		}<br></td></tr
><tr
id=sl_svn12_399

><td class="source">	}<br></td></tr
><tr
id=sl_svn12_400

><td class="source">};<br></td></tr
><tr
id=sl_svn12_401

><td class="source"><br></td></tr
><tr
id=sl_svn12_402

><td class="source"><br></td></tr
><tr
id=sl_svn12_403

><td class="source">// Dynamically define dprint debug logging function.<br></td></tr
><tr
id=sl_svn12_404

><td class="source">if ( &quot;undefined&quot; != typeof(console) &amp;&amp; &quot;undefined&quot; != typeof(console.log) ) {<br></td></tr
><tr
id=sl_svn12_405

><td class="source">	CJS.dprint = function(msg) {<br></td></tr
><tr
id=sl_svn12_406

><td class="source">		console.log(&quot;CJS &quot; + Number(new Date()) + &quot;: &quot; + msg);<br></td></tr
><tr
id=sl_svn12_407

><td class="source">	};<br></td></tr
><tr
id=sl_svn12_408

><td class="source">}<br></td></tr
><tr
id=sl_svn12_409

><td class="source">else {<br></td></tr
><tr
id=sl_svn12_410

><td class="source">	CJS.dprint = function(msg) { };<br></td></tr
><tr
id=sl_svn12_411

><td class="source">	/*<br></td></tr
><tr
id=sl_svn12_412

><td class="source">	var gDprint = &quot;&quot;;<br></td></tr
><tr
id=sl_svn12_413

><td class="source">	CJS.dprint = function(msg) {<br></td></tr
><tr
id=sl_svn12_414

><td class="source">		var div = document.getElementById(&#39;dprint&#39;);<br></td></tr
><tr
id=sl_svn12_415

><td class="source">		if ( ! div ) {<br></td></tr
><tr
id=sl_svn12_416

><td class="source">			if ( ! document.body ) {<br></td></tr
><tr
id=sl_svn12_417

><td class="source">				gDprint = msg + &quot;&lt;br&gt;&quot; + gDprint;<br></td></tr
><tr
id=sl_svn12_418

><td class="source">				return;<br></td></tr
><tr
id=sl_svn12_419

><td class="source">			}<br></td></tr
><tr
id=sl_svn12_420

><td class="source">			div = document.createElement(&#39;div&#39;);<br></td></tr
><tr
id=sl_svn12_421

><td class="source">			div.id = &quot;dprint&quot;;<br></td></tr
><tr
id=sl_svn12_422

><td class="source">			document.body.appendChild(div);<br></td></tr
><tr
id=sl_svn12_423

><td class="source">			div.style.cssText = &quot;border: 2px solid #999; width: 700px; height: 600px; position: fixed; top: 20px; right: 20px; padding: 8px; background: #FFF; font-size: 10px;&quot;;<br></td></tr
><tr
id=sl_svn12_424

><td class="source">			div.innerHTML += gDprint;<br></td></tr
><tr
id=sl_svn12_425

><td class="source">		}<br></td></tr
><tr
id=sl_svn12_426

><td class="source"><br></td></tr
><tr
id=sl_svn12_427

><td class="source">		div.innerHTML = msg + &quot;&lt;br&gt;&quot; + div.innerHTML;<br></td></tr
><tr
id=sl_svn12_428

><td class="source">	};<br></td></tr
><tr
id=sl_svn12_429

><td class="source">	*/<br></td></tr
><tr
id=sl_svn12_430

><td class="source">};<br></td></tr
><tr
id=sl_svn12_431

><td class="source"><br></td></tr
><tr
id=sl_svn12_432

><td class="source"><br></td></tr
><tr
id=sl_svn12_433

><td class="source">//<br></td></tr
><tr
id=sl_svn12_434

><td class="source">// Override document.write<br></td></tr
><tr
id=sl_svn12_435

><td class="source">// <br></td></tr
><tr
id=sl_svn12_436

><td class="source"><br></td></tr
><tr
id=sl_svn12_437

><td class="source">// Attempt to handle document.write. Doesn&#39;t work well if the <br></td></tr
><tr
id=sl_svn12_438

><td class="source">// document.write occurs in the HEAD or if it outputs a SCRIPT tag.<br></td></tr
><tr
id=sl_svn12_439

><td class="source">CJS.docwrite = function(text) {<br></td></tr
><tr
id=sl_svn12_440

><td class="source">	if ( CJS.curScript ) {<br></td></tr
><tr
id=sl_svn12_441

><td class="source">		if ( ! CJS.curScript.docwriteTarget ) {<br></td></tr
><tr
id=sl_svn12_442

><td class="source">			CJS.curScript.docwriteTarget = document.createElement(&#39;span&#39;);<br></td></tr
><tr
id=sl_svn12_443

><td class="source">			CJS.curScript.parentNode.insertBefore(CJS.curScript.docwriteTarget, CJS.curScript);<br></td></tr
><tr
id=sl_svn12_444

><td class="source">		}<br></td></tr
><tr
id=sl_svn12_445

><td class="source"><br></td></tr
><tr
id=sl_svn12_446

><td class="source">		var i1 = text.indexOf(&quot;&lt;script&quot;);<br></td></tr
><tr
id=sl_svn12_447

><td class="source">		if ( -1 === i1 ) {<br></td></tr
><tr
id=sl_svn12_448

><td class="source">			// no scripts<br></td></tr
><tr
id=sl_svn12_449

><td class="source">			CJS.dprint(&quot;docwrite: &quot; + text.substring(0, 64));<br></td></tr
><tr
id=sl_svn12_450

><td class="source">			CJS.curScript.docwriteTarget.innerHTML += text;<br></td></tr
><tr
id=sl_svn12_451

><td class="source">		}<br></td></tr
><tr
id=sl_svn12_452

><td class="source">		else {<br></td></tr
><tr
id=sl_svn12_453

><td class="source">			// script tag<br></td></tr
><tr
id=sl_svn12_454

><td class="source">			var i2 = text.indexOf(&quot;&lt;\/script&gt;&quot;, i1) + 9;<br></td></tr
><tr
id=sl_svn12_455

><td class="source">			if ( -1 != i2 ) {<br></td></tr
><tr
id=sl_svn12_456

><td class="source">				var textBefore = text.substring(0, i1);<br></td></tr
><tr
id=sl_svn12_457

><td class="source">				var textScript = text.substring(i1, i2);<br></td></tr
><tr
id=sl_svn12_458

><td class="source">				var textAfter = text.substring(i2+1);<br></td></tr
><tr
id=sl_svn12_459

><td class="source"><br></td></tr
><tr
id=sl_svn12_460

><td class="source">				if ( textBefore ) {<br></td></tr
><tr
id=sl_svn12_461

><td class="source">					CJS.dprint(&quot;docwrite: &quot; + textBefore.substring(0, 64));<br></td></tr
><tr
id=sl_svn12_462

><td class="source">					CJS.curScript.docwriteTarget.innerHTML += textBefore + textAfter;<br></td></tr
><tr
id=sl_svn12_463

><td class="source">				}<br></td></tr
><tr
id=sl_svn12_464

><td class="source"><br></td></tr
><tr
id=sl_svn12_465

><td class="source">				CJS.docwriteScript(textScript);<br></td></tr
><tr
id=sl_svn12_466

><td class="source">			}<br></td></tr
><tr
id=sl_svn12_467

><td class="source">		}<br></td></tr
><tr
id=sl_svn12_468

><td class="source">	}<br></td></tr
><tr
id=sl_svn12_469

><td class="source">	else {<br></td></tr
><tr
id=sl_svn12_470

><td class="source">		CJS.dprint(&quot;ERROR: There&#39;s a problem with the async override of document.write.&quot;);<br></td></tr
><tr
id=sl_svn12_471

><td class="source">	}<br></td></tr
><tr
id=sl_svn12_472

><td class="source">};<br></td></tr
><tr
id=sl_svn12_473

><td class="source"><br></td></tr
><tr
id=sl_svn12_474

><td class="source"><br></td></tr
><tr
id=sl_svn12_475

><td class="source">// Insert a SCRIPT element found during document.write.<br></td></tr
><tr
id=sl_svn12_476

><td class="source">CJS.docwriteScript = function(textScript) {<br></td></tr
><tr
id=sl_svn12_477

><td class="source">	// extract SRC from script docwrite and insert dynamically<br></td></tr
><tr
id=sl_svn12_478

><td class="source">	var aMatches = textScript.match(/src=&#39;([^&#39;]*)/i) ||<br></td></tr
><tr
id=sl_svn12_479

><td class="source">                   textScript.match(/src=&quot;([^&quot;]*)/i) ||<br></td></tr
><tr
id=sl_svn12_480

><td class="source">                   textScript.match(/src=([^ &gt;]*)/i);<br></td></tr
><tr
id=sl_svn12_481

><td class="source"><br></td></tr
><tr
id=sl_svn12_482

><td class="source">	if ( aMatches ) {<br></td></tr
><tr
id=sl_svn12_483

><td class="source">		var url = aMatches[1];<br></td></tr
><tr
id=sl_svn12_484

><td class="source">		CJS.dprint(&quot;docwriteScript url = &quot; + url);<br></td></tr
><tr
id=sl_svn12_485

><td class="source">		var se = document.createElement(&#39;script&#39;);<br></td></tr
><tr
id=sl_svn12_486

><td class="source">		se.src = url;<br></td></tr
><tr
id=sl_svn12_487

><td class="source">		document.body.appendChild(se);<br></td></tr
><tr
id=sl_svn12_488

><td class="source">	}<br></td></tr
><tr
id=sl_svn12_489

><td class="source">    else {<br></td></tr
><tr
id=sl_svn12_490

><td class="source">	    // TODO - handle inline SCRIPT code<br></td></tr
><tr
id=sl_svn12_491

><td class="source">	}<br></td></tr
><tr
id=sl_svn12_492

><td class="source">};<br></td></tr
><tr
id=sl_svn12_493

><td class="source"><br></td></tr
><tr
id=sl_svn12_494

><td class="source"><br></td></tr
><tr
id=sl_svn12_495

><td class="source"><br></td></tr
><tr
id=sl_svn12_496

><td class="source">CJS.start();<br></td></tr
></table></pre>
<pre><table width="100%"><tr class="cursor_stop cursor_hidden"><td></td></tr></table></pre>
</td>
</tr></table>

 
<script type="text/javascript">
 var lineNumUnderMouse = -1;
 
 function gutterOver(num) {
 gutterOut();
 var newTR = document.getElementById('gr_svn12_' + num);
 if (newTR) {
 newTR.className = 'undermouse';
 }
 lineNumUnderMouse = num;
 }
 function gutterOut() {
 if (lineNumUnderMouse != -1) {
 var oldTR = document.getElementById(
 'gr_svn12_' + lineNumUnderMouse);
 if (oldTR) {
 oldTR.className = '';
 }
 lineNumUnderMouse = -1;
 }
 }
 var numsGenState = {table_base_id: 'nums_table_'};
 var srcGenState = {table_base_id: 'src_table_'};
 var alignerRunning = false;
 var startOver = false;
 function setLineNumberHeights() {
 if (alignerRunning) {
 startOver = true;
 return;
 }
 numsGenState.chunk_id = 0;
 numsGenState.table = document.getElementById('nums_table_0');
 numsGenState.row_num = 0;
 if (!numsGenState.table) {
 return; // Silently exit if no file is present.
 }
 srcGenState.chunk_id = 0;
 srcGenState.table = document.getElementById('src_table_0');
 srcGenState.row_num = 0;
 alignerRunning = true;
 continueToSetLineNumberHeights();
 }
 function rowGenerator(genState) {
 if (genState.row_num < genState.table.rows.length) {
 var currentRow = genState.table.rows[genState.row_num];
 genState.row_num++;
 return currentRow;
 }
 var newTable = document.getElementById(
 genState.table_base_id + (genState.chunk_id + 1));
 if (newTable) {
 genState.chunk_id++;
 genState.row_num = 0;
 genState.table = newTable;
 return genState.table.rows[0];
 }
 return null;
 }
 var MAX_ROWS_PER_PASS = 1000;
 function continueToSetLineNumberHeights() {
 var rowsInThisPass = 0;
 var numRow = 1;
 var srcRow = 1;
 while (numRow && srcRow && rowsInThisPass < MAX_ROWS_PER_PASS) {
 numRow = rowGenerator(numsGenState);
 srcRow = rowGenerator(srcGenState);
 rowsInThisPass++;
 if (numRow && srcRow) {
 if (numRow.offsetHeight != srcRow.offsetHeight) {
 numRow.firstChild.style.height = srcRow.offsetHeight + 'px';
 }
 }
 }
 if (rowsInThisPass >= MAX_ROWS_PER_PASS) {
 setTimeout(continueToSetLineNumberHeights, 10);
 } else {
 alignerRunning = false;
 if (startOver) {
 startOver = false;
 setTimeout(setLineNumberHeights, 500);
 }
 }
 }
 function initLineNumberHeights() {
 // Do 2 complete passes, because there can be races
 // between this code and prettify.
 startOver = true;
 setTimeout(setLineNumberHeights, 250);
 window.onresize = setLineNumberHeights;
 }
 initLineNumberHeights();
</script>

 
 
 <div id="log">
 <div style="text-align:right">
 <a class="ifCollapse" href="#" onclick="_toggleMeta('', 'p', 'controljs', this)">Show details</a>
 <a class="ifExpand" href="#" onclick="_toggleMeta('', 'p', 'controljs', this)">Hide details</a>
 </div>
 <div class="ifExpand">
 
 
 <div class="pmeta_bubble_bg" style="border:1px solid white">
 <div class="round4"></div>
 <div class="round2"></div>
 <div class="round1"></div>
 <div class="box-inner">
 <div id="changelog">
 <p>Change log</p>
 <div>
 <a href="/p/controljs/source/detail?spec=svn12&amp;r=12">r12</a>
 by stevesoudersorg
 on Dec 26, 2010
 &nbsp; <a href="/p/controljs/source/diff?spec=svn12&r=12&amp;format=side&amp;path=/trunk/control.js&amp;old_path=/trunk/control.js&amp;old=11">Diff</a>
 </div>
 <pre>For better validation use &quot;data-cjssrc&quot;
and &quot;data-cjsexec&quot; at SCRIPT attributes.</pre>
 </div>
 
 
 
 
 
 
 <script type="text/javascript">
 var detail_url = '/p/controljs/source/detail?r=12&spec=svn12';
 var publish_url = '/p/controljs/source/detail?r=12&spec=svn12#publish';
 // describe the paths of this revision in javascript.
 var changed_paths = [];
 var changed_urls = [];
 
 changed_paths.push('/trunk/control.js');
 changed_urls.push('/p/controljs/source/browse/trunk/control.js?r\x3d12\x26spec\x3dsvn12');
 
 var selected_path = '/trunk/control.js';
 
 
 function getCurrentPageIndex() {
 for (var i = 0; i < changed_paths.length; i++) {
 if (selected_path == changed_paths[i]) {
 return i;
 }
 }
 }
 function getNextPage() {
 var i = getCurrentPageIndex();
 if (i < changed_paths.length - 1) {
 return changed_urls[i + 1];
 }
 return null;
 }
 function getPreviousPage() {
 var i = getCurrentPageIndex();
 if (i > 0) {
 return changed_urls[i - 1];
 }
 return null;
 }
 function gotoNextPage() {
 var page = getNextPage();
 if (!page) {
 page = detail_url;
 }
 window.location = page;
 }
 function gotoPreviousPage() {
 var page = getPreviousPage();
 if (!page) {
 page = detail_url;
 }
 window.location = page;
 }
 function gotoDetailPage() {
 window.location = detail_url;
 }
 function gotoPublishPage() {
 window.location = publish_url;
 }
</script>

 
 <style type="text/css">
 #review_nav {
 border-top: 3px solid white;
 padding-top: 6px;
 margin-top: 1em;
 }
 #review_nav td {
 vertical-align: middle;
 }
 #review_nav select {
 margin: .5em 0;
 }
 </style>
 <div id="review_nav">
 <table><tr><td>Go to:&nbsp;</td><td>
 <select name="files_in_rev" onchange="window.location=this.value">
 
 <option value="/p/controljs/source/browse/trunk/control.js?r=12&amp;spec=svn12"
 selected="selected"
 >/trunk/control.js</option>
 
 </select>
 </td></tr></table>
 
 
 



 <div style="white-space:nowrap">
 Project members,
 <a href="https://www.google.com/accounts/ServiceLogin?service=code&amp;ltmpl=phosting&amp;continue=http%3A%2F%2Fcode.google.com%2Fp%2Fcontroljs%2Fsource%2Fbrowse%2Ftrunk%2Fcontrol.js&amp;followup=http%3A%2F%2Fcode.google.com%2Fp%2Fcontroljs%2Fsource%2Fbrowse%2Ftrunk%2Fcontrol.js"
 >sign in</a> to write a code review</div>


 
 </div>
 
 
 </div>
 <div class="round1"></div>
 <div class="round2"></div>
 <div class="round4"></div>
 </div>
 <div class="pmeta_bubble_bg" style="border:1px solid white">
 <div class="round4"></div>
 <div class="round2"></div>
 <div class="round1"></div>
 <div class="box-inner">
 <div id="older_bubble">
 <p>Older revisions</p>
 
 
 <div class="closed" style="margin-bottom:3px;" >
 <img class="ifClosed" onclick="_toggleHidden(this)" src="http://www.gstatic.com/codesite/ph/images/plus.gif" >
 <img class="ifOpened" onclick="_toggleHidden(this)" src="http://www.gstatic.com/codesite/ph/images/minus.gif" >
 <a href="/p/controljs/source/detail?spec=svn12&r=11">r11</a>
 by stevesoudersorg
 on Dec 18, 2010
 &nbsp; <a href="/p/controljs/source/diff?spec=svn12&r=11&amp;format=side&amp;path=/trunk/control.js&amp;old_path=/trunk/control.js&amp;old=10">Diff</a>
 <br>
 <pre class="ifOpened">and (not or)</pre>
 </div>
 
 <div class="closed" style="margin-bottom:3px;" >
 <img class="ifClosed" onclick="_toggleHidden(this)" src="http://www.gstatic.com/codesite/ph/images/plus.gif" >
 <img class="ifOpened" onclick="_toggleHidden(this)" src="http://www.gstatic.com/codesite/ph/images/minus.gif" >
 <a href="/p/controljs/source/detail?spec=svn12&r=10">r10</a>
 by stevesoudersorg
 on Dec 18, 2010
 &nbsp; <a href="/p/controljs/source/diff?spec=svn12&r=10&amp;format=side&amp;path=/trunk/control.js&amp;old_path=/trunk/control.js&amp;old=9">Diff</a>
 <br>
 <pre class="ifOpened">fixed <a title="Pages are _too_ fast!" class=closed_ref href="/p/controljs/issues/detail?id=4"> issue #4 </a> - if the page is
already loaded we have to call
processScripts immediately (as opposed
to setting window.onload)</pre>
 </div>
 
 <div class="closed" style="margin-bottom:3px;" >
 <img class="ifClosed" onclick="_toggleHidden(this)" src="http://www.gstatic.com/codesite/ph/images/plus.gif" >
 <img class="ifOpened" onclick="_toggleHidden(this)" src="http://www.gstatic.com/codesite/ph/images/minus.gif" >
 <a href="/p/controljs/source/detail?spec=svn12&r=9">r9</a>
 by stevesoudersorg
 on Dec 16, 2010
 &nbsp; <a href="/p/controljs/source/diff?spec=svn12&r=9&amp;format=side&amp;path=/trunk/control.js&amp;old_path=/trunk/control.js&amp;old=8">Diff</a>
 <br>
 <pre class="ifOpened">much more elegant handling of
execution script onload that avoids
browser sniffing. note the tip that
.onload should be set before .src!</pre>
 </div>
 
 
 <a href="/p/controljs/source/list?path=/trunk/control.js&start=12">All revisions of this file</a>
 </div>
 </div>
 <div class="round1"></div>
 <div class="round2"></div>
 <div class="round4"></div>
 </div>
 
 <div class="pmeta_bubble_bg" style="border:1px solid white">
 <div class="round4"></div>
 <div class="round2"></div>
 <div class="round1"></div>
 <div class="box-inner">
 <div id="fileinfo_bubble">
 <p>File info</p>
 
 <div>Size: 14153 bytes,
 496 lines</div>
 
 <div><a href="//controljs.googlecode.com/svn/trunk/control.js">View raw file</a></div>
 </div>
 
 </div>
 <div class="round1"></div>
 <div class="round2"></div>
 <div class="round4"></div>
 </div>
 </div>
 </div>


</div>

</div>
</div>

<script src="http://www.gstatic.com/codesite/ph/3282150342600863652/js/prettify/prettify.js"></script>
<script type="text/javascript">prettyPrint();</script>


<script src="http://www.gstatic.com/codesite/ph/3282150342600863652/js/source_file_scripts.js"></script>

 <script type="text/javascript" src="https://kibbles.googlecode.com/files/kibbles-1.3.3.comp.js"></script>
 <script type="text/javascript">
 var lastStop = null;
 var initialized = false;
 
 function updateCursor(next, prev) {
 if (prev && prev.element) {
 prev.element.className = 'cursor_stop cursor_hidden';
 }
 if (next && next.element) {
 next.element.className = 'cursor_stop cursor';
 lastStop = next.index;
 }
 }
 
 function pubRevealed(data) {
 updateCursorForCell(data.cellId, 'cursor_stop cursor_hidden');
 if (initialized) {
 reloadCursors();
 }
 }
 
 function draftRevealed(data) {
 updateCursorForCell(data.cellId, 'cursor_stop cursor_hidden');
 if (initialized) {
 reloadCursors();
 }
 }
 
 function draftDestroyed(data) {
 updateCursorForCell(data.cellId, 'nocursor');
 if (initialized) {
 reloadCursors();
 }
 }
 function reloadCursors() {
 kibbles.skipper.reset();
 loadCursors();
 if (lastStop != null) {
 kibbles.skipper.setCurrentStop(lastStop);
 }
 }
 // possibly the simplest way to insert any newly added comments
 // is to update the class of the corresponding cursor row,
 // then refresh the entire list of rows.
 function updateCursorForCell(cellId, className) {
 var cell = document.getElementById(cellId);
 // we have to go two rows back to find the cursor location
 var row = getPreviousElement(cell.parentNode);
 row.className = className;
 }
 // returns the previous element, ignores text nodes.
 function getPreviousElement(e) {
 var element = e.previousSibling;
 if (element.nodeType == 3) {
 element = element.previousSibling;
 }
 if (element && element.tagName) {
 return element;
 }
 }
 function loadCursors() {
 // register our elements with skipper
 var elements = CR_getElements('*', 'cursor_stop');
 var len = elements.length;
 for (var i = 0; i < len; i++) {
 var element = elements[i]; 
 element.className = 'cursor_stop cursor_hidden';
 kibbles.skipper.append(element);
 }
 }
 function toggleComments() {
 CR_toggleCommentDisplay();
 reloadCursors();
 }
 function keysOnLoadHandler() {
 // setup skipper
 kibbles.skipper.addStopListener(
 kibbles.skipper.LISTENER_TYPE.PRE, updateCursor);
 // Set the 'offset' option to return the middle of the client area
 // an option can be a static value, or a callback
 kibbles.skipper.setOption('padding_top', 50);
 // Set the 'offset' option to return the middle of the client area
 // an option can be a static value, or a callback
 kibbles.skipper.setOption('padding_bottom', 100);
 // Register our keys
 kibbles.skipper.addFwdKey("n");
 kibbles.skipper.addRevKey("p");
 kibbles.keys.addKeyPressListener(
 'u', function() { window.location = detail_url; });
 kibbles.keys.addKeyPressListener(
 'r', function() { window.location = detail_url + '#publish'; });
 
 kibbles.keys.addKeyPressListener('j', gotoNextPage);
 kibbles.keys.addKeyPressListener('k', gotoPreviousPage);
 
 
 }
 </script>
<script src="http://www.gstatic.com/codesite/ph/3282150342600863652/js/code_review_scripts.js"></script>
<script type="text/javascript">
 function showPublishInstructions() {
 var element = document.getElementById('review_instr');
 if (element) {
 element.className = 'opened';
 }
 }
 var codereviews;
 function revsOnLoadHandler() {
 // register our source container with the commenting code
 var paths = {'svn12': '/trunk/control.js'}
 codereviews = CR_controller.setup(
 {"assetHostPath":"http://www.gstatic.com/codesite/ph","projectName":"controljs","projectHomeUrl":"/p/controljs","urlPrefix":"p","domainName":null,"relativeBaseUrl":"","profileUrl":null,"token":null,"assetVersionPath":"http://www.gstatic.com/codesite/ph/3282150342600863652","absoluteBaseUrl":"http://code.google.com","loggedInUserEmail":null}, '', 'svn12', paths,
 CR_BrowseIntegrationFactory);
 
 codereviews.registerActivityListener(CR_ActivityType.REVEAL_DRAFT_PLATE, showPublishInstructions);
 
 codereviews.registerActivityListener(CR_ActivityType.REVEAL_PUB_PLATE, pubRevealed);
 codereviews.registerActivityListener(CR_ActivityType.REVEAL_DRAFT_PLATE, draftRevealed);
 codereviews.registerActivityListener(CR_ActivityType.DISCARD_DRAFT_COMMENT, draftDestroyed);
 
 
 
 
 
 
 
 var initialized = true;
 reloadCursors();
 }
 window.onload = function() {keysOnLoadHandler(); revsOnLoadHandler();};

</script>
<script type="text/javascript" src="http://www.gstatic.com/codesite/ph/3282150342600863652/js/dit_scripts.js"></script>

 
 
 
 <script type="text/javascript" src="http://www.gstatic.com/codesite/ph/3282150342600863652/js/ph_core.js"></script>
 
 
 
 
 <script type="text/javascript" src="/js/codesite_product_dictionary_ph.pack.04102009.js"></script>
</div> 
<div id="footer" dir="ltr">
 <div class="text">
 &copy;2011 Google -
 <a href="/projecthosting/terms.html">Terms</a> -
 <a href="http://www.google.com/privacy.html">Privacy</a> -
 <a href="/p/support/">Project Hosting Help</a>
 </div>
</div>
 <div class="hostedBy" style="margin-top: -20px;">
 <span style="vertical-align: top;">Powered by <a href="http://code.google.com/projecthosting/">Google Project Hosting</a></span>
 </div>
 
 


 
 
 <script type="text/javascript">_CS_reportToCsi();</script>
 
 </body>
</html>

